boolean calling = true;
TelephonyManager telephonyManager = (TelephonyManager) AppContext.getInstance().getSystemService(Context.TELEPHONY_SERVICE);
if (TelephonyManager.CALL_STATE_IDLE == telephonyManager.getCallState()) {
calling = false;
}
return calling;