Simulate Back Key Event Programmatically In Android

This is how to simulate a back key press event in Android programmatically. Do note that this is called twice to dispatch a key event for both UP and down actions.

If only one of these two is executed, it will not work so make sure both of these are executed.

Related Posts Plugin for WordPress, Blogger...

Leave a Reply

Your email address will not be published. Required fields are marked *