Fix Issue #258 - navigator.app.exitApp() and navigator.app.backHistory() not working in PhoneGap 1.1.0 on Android

This commit is contained in:
Bryce Curtis 2011-10-12 11:22:35 -05:00
parent 0ec47c5bd8
commit 7ee04ebf31

View File

@ -1345,10 +1345,10 @@ public class DroidGap extends PhonegapActivity {
} }
/** /**
* End this activity by simulating backbutton keypress * End this activity by calling finish for activity
*/ */
public void endActivity() { public void endActivity() {
super.onKeyDown(KeyEvent.KEYCODE_BACK, new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_BACK)); this.finish();
} }
/** /**