Automatically Answer Call In Android 2.1
I am looking for some code to automatically answer incoming call in android 2.1. I have looked on some of the available threads on stack-overflow but they do not seem to work for A
Solution 1:
// Set up communication with the telephony service (thanks to Tedd's Droid Tools!)
TelephonyManagertm= (TelephonyManager) getSystemService(TELEPHONY_SERVICE);
Classc= Class.forName(tm.getClass().getName());
Methodm= c.getDeclaredMethod("getITelephony");
m.setAccessible(true);
ITelephony telephonyService;
telephonyService = (ITelephony)m.invoke(tm);
// Silence the ringer and answer the call!
telephonyService.silenceRinger();
telephonyService.answerRingingCall();
Post a Comment for "Automatically Answer Call In Android 2.1"