How to automatically decline the incoming call from app in android after letting the call to ring for 5 secs ?
Asked
Active
Viewed 589 times
2 Answers
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());
}
-
Don't you need to root the phone for this? – J-Rou Dec 21 '12 at 20:03
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