【问题标题】:Decline call in android在android中拒绝通话
【发布时间】:2012-12-13 12:14:13
【问题描述】:

在让来电响了5秒后,如何在android中自动拒绝来自应用程序的来电?

【问题讨论】:

    标签: android call telephonymanager


    【解决方案1】:

    查看此链接: 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());
         }
    

    【讨论】:

    • 你不需要root手机吗?
    【解决方案2】:

    检查此链接: 您可以使用 Android 的 Root Call Blocker 快速拒绝来电! http://www.xda-developers.com/android/reject-calls-quickly-with-root-call-blocker-for-android/

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-12-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-05-10
      • 2015-06-01
      • 2020-06-11
      • 1970-01-01
      相关资源
      最近更新 更多