1

How to automatically decline the incoming call from app in android after letting the call to ring for 5 secs ?

Vins
  • 4,089
  • 2
  • 35
  • 50

2 Answers2

2

check this link: 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());
     }
Community
  • 1
  • 1
Androider
  • 803
  • 6
  • 18
0

Check this link: You can Reject Calls Quickly With Root Call Blocker for Android! http://www.xda-developers.com/android/reject-calls-quickly-with-root-call-blocker-for-android/

Prayaim
  • 19
  • 5