end an incoming call programmatically in android -


I want to end the incoming call program through my app. After searching I got the code which uses com.android.internal.telephony but says it does not work for more than 2.3 versions. I got the code to participate in a call through key press event

  intent = new intent (Intent.ACTION_MEDIA_BUTTON); KeyEvent event = new KeyEvent (KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_HEADSETHOOK); I.putExtra (Intent.EXTRA_KEY_EVENT, event); Context.send Ordered Broadcast (I, blank);   

Is there any similar method available to end the call? Plz help

Check it out to take this link out after snatching and then disliked it And this won

Solution

  1. Call a window as soon as you get a broadcast for incoming Place your end call button in the center in the same direction as the default Android and Call button in the center so that the user clicks your button but you can The event below will pass on and therefore call upon ending with Android, but you become a winner.



Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -