Call判断正在通话

TelephonyManager tm = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);
if (tm.getCallState() != TelephonyManager.CALL_STATE_IDLE) {
    Toast.makeText(getApplicationContext(), R.string.in_call_play_error, Toast.LENGTH_SHORT).show();
     break;
}get

相关文章
相关标签/搜索