Return-Path: X-Original-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 14402989C for ; Fri, 9 Mar 2012 06:18:28 +0000 (UTC) Received: (qmail 32004 invoked by uid 500); 9 Mar 2012 06:18:28 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 31793 invoked by uid 500); 9 Mar 2012 06:18:23 -0000 Mailing-List: contact callback-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-dev@incubator.apache.org Received: (qmail 31758 invoked by uid 99); 9 Mar 2012 06:18:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Mar 2012 06:18:22 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Mar 2012 06:18:19 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 6E221114F4 for ; Fri, 9 Mar 2012 06:17:58 +0000 (UTC) Date: Fri, 9 Mar 2012 06:17:58 +0000 (UTC) From: "Kevin Scott (Commented) (JIRA)" To: callback-dev@incubator.apache.org Message-ID: <1829269752.42448.1331273878452.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1449705306.29911.1330458586290.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (CB-283) Disabling the back button handler doesn't give control back to the main Activity MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CB-283?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13225874#comment-13225874 ] Kevin Scott commented on CB-283: -------------------------------- The following code has not worked correctly since v1.3.1 document.addEventListener("backbutton", backButtonTouch, true); function backButtonTouch(){ alert("back button"); if(MobileApp.stack.index>0){ MobileApp.stack.pop(); }else{ //device.exitApp(); navigator.device.exitApp(); } } The above code should fire the alert when the hardware back button is pressed. > Disabling the back button handler doesn't give control back to the main Activity > -------------------------------------------------------------------------------- > > Key: CB-283 > URL: https://issues.apache.org/jira/browse/CB-283 > Project: Apache Callback > Issue Type: Bug > Components: Android > Affects Versions: Master > Reporter: Simon MacDonald > Assignee: Filip Maj > Priority: Blocker > Fix For: 1.5.0 > > > Go into the mobile spec tests, tap "Events", tap "Intercept backbutton", click the hardware back button. You should see an line printed in the results section "Back button intercepted". Now tap "Stop intercept of backbutton" and then click the hardware back button. You'll notice the app does not go back to the previous page. > Looking at the logs you will see: > I/InputDispatcher( 129): Delivering key to current input target: action: 1, channel '40c840b0 com.phonegap.mobilespec/com.phonegap.mobilespec.MobileSpec (server)' -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira