How would I define and call the following native java code (trying to "simulate" back button press WITHOUT calling Activity.Finish()
Public void simulateBackClick() {
this.dispatchKeyEvent(new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_BACK));
}
Or if there is a better way of doing this I would be grateful!
Public void simulateBackClick() {
this.dispatchKeyEvent(new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_BACK));
}
Or if there is a better way of doing this I would be grateful!