From 7ee04ebf313c7403cf623a1f9c00b6b5e7cc9f0b Mon Sep 17 00:00:00 2001 From: Bryce Curtis Date: Wed, 12 Oct 2011 11:22:35 -0500 Subject: [PATCH] Fix Issue #258 - navigator.app.exitApp() and navigator.app.backHistory() not working in PhoneGap 1.1.0 on Android --- framework/src/com/phonegap/DroidGap.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/src/com/phonegap/DroidGap.java b/framework/src/com/phonegap/DroidGap.java index 870f7551..3f79ec7f 100755 --- a/framework/src/com/phonegap/DroidGap.java +++ b/framework/src/com/phonegap/DroidGap.java @@ -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() { - super.onKeyDown(KeyEvent.KEYCODE_BACK, new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_BACK)); + this.finish(); } /**