【发布时间】:2012-12-13 12:14:13
【问题描述】:
在让来电响了5秒后,如何在android中自动拒绝来自应用程序的来电?
【问题讨论】:
标签: android call telephonymanager
在让来电响了5秒后,如何在android中自动拒绝来自应用程序的来电?
【问题讨论】:
标签: android call telephonymanager
查看此链接: Android: Taking complete control of phone(kiosk mode), is it possible? How?
try{
TelephonyManager manager = (TelephonyManager)context.getSystemService(Context.TELEPHONY_SERVICE);
Class c = Class.forName(manager.getClass().getName());
Method m = c.getDeclaredMethod("getITelephony");
m.setAccessible(true);
ITelephony telephony = (ITelephony)m.invoke(manager);
telephony.endCall();
} catch(Exception e){
Log.d("",e.getMessage());
}
【讨论】:
检查此链接: 您可以使用 Android 的 Root Call Blocker 快速拒绝来电! http://www.xda-developers.com/android/reject-calls-quickly-with-root-call-blocker-for-android/
【讨论】: