How to disconnect incoming call in android by programatically
I want to disconnect incoming call for a particular time. How can i do this is it impossible ? I searched and i find it is impossible. please help me. public class Telephony3 extends Service { Context context; public IBinder onBind(Intent intent) { return null; } public void onCreate() { super.onCreate(); try { StateListener phoneStateListener = new StateListener(); TelephonyManager telephonymanager = (TelephonyManager)getSystemService(TELEPHONY_SERVICE); telephonymanager.listen(phoneStateListener, PhoneStateListener.LISTEN_CALL_STATE); }catch(Exception e) { e.printStackTrace(); } } class