Block Call on Sony Ericsson Phones
<p>im trying to write an app to block calls for the phone. Current using the following code to block calls.</p>

<pre><code>Intent buttonDown = new Intent(Intent.ACTION_MEDIA_BUTTON);
KeyEvent event = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_HEADSETHOOK);
event = KeyEvent.changeFlags(event, KeyEvent.FLAG_LONG_PRESS);
buttonDown.putExtra(Intent.EXTRA_KEY_EVENT, event);
context.sendOrderedBroadcast(buttonDown, Manifest.permission.CALL_PRIVILEGED);
</code></pre>

<p>It works on Galaxy Nexus, Galaxy SII, and HTC Sensational. But it does not work on SE Xperia S, any ideas?</p>
