 <p>My Solution</p> <pre><code>Intent buttonUp = new Intent(Intent.ACTION_MEDIA_BUTTON); buttonUp.putExtra(Intent.EXTRA_KEY_EVENT, new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_HEADSETHOOK)); getContext().sendOrderedBroadcast(buttonUp, "android.permission.CALL_PRIVILEGED"); </code></pre>