如果我在我的 Android 设备上双击“返回”按钮,那么应用程序就会崩溃。
我的应用程序使用 JQuery Mobile 和 Phonegap 2.0 (Cordova) 构建。
我遇到了这个问题。我将焦点放在页面上的任何 INPUT 字段上,以便出现键盘。我双击设备上的“返回”按钮。预期:应用程序返回到我访问过的上一页。实际:应用程序崩溃
Eclipse Log Cat 在它发生时向我显示下一条消息:
11-09 18:20:04.175: D/SoftKeyboardDetect(7399): Ignore this event
11-09 18:20:04.597: D/dalvikvm(136): GC_FOR_ALLOC freed 502K, 11% free 15278K/17159K, paused 149ms
11-09 18:20:04.632: D/CordovaWebView(7399): >>> loadUrlNow()
11-09 18:20:04.675: D/SoftKeyboardDetect(7399): Ignore this event
11-09 18:20:04.707: W/InputManagerService(136): Starting input on non-focused client com.android.internal.view.IInputMethodClient$Stub
$Proxy@414c0dc0 (uid=10008 pid=7399)
11-09 18:20:04.707: W/InputManagerService(136): Starting input on non-focused client com.android.internal.view.IInputMethodClient$Stub
$Proxy@414c0dc0 (uid=10008 pid=7399)
11-09 18:20:04.711: W/IInputConnectionWrapper(7399): showStatusIcon on inactive InputConnection
11-09 18:20:04.925: D/OpenGLRenderer(7399): Flushing caches (mode 0)
11-09 18:20:04.988: D/dalvikvm(202): GC_CONCURRENT freed 869K, 32% free 10761K/15623K, paused 2ms+22ms
11-09 18:20:05.425: D/OpenGLRenderer(7399): Flushing caches (mode 1)
11-09 18:20:05.429: D/DroidGap(7399): onDestroy()
11-09 18:20:05.429: D/CordovaWebView(7399): >>> loadUrlNow()
11-09 18:20:05.433: D/CordovaWebView(7399): >>> loadUrlNow()
11-09 18:20:05.457: D/DroidGap(7399): onMessage(onPageStarted,about:blank)
11-09 18:20:05.476: D/Cordova(7399): onPageFinished(about:blank)
11-09 18:20:05.476: D/DroidGap(7399): onMessage(onPageFinished,about:blank)
11-09 18:20:05.476: D/DroidGap(7399): onMessage(exit,null)
有人可以帮我解决这个问题吗?
提前致谢。