You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Joe Bowser (JIRA)" <ji...@apache.org> on 2012/10/12 20:57:02 UTC

[jira] [Created] (CB-1658) Back Button closes app instead of using history

Joe Bowser created CB-1658:
------------------------------

             Summary: Back Button closes app instead of using history
                 Key: CB-1658
                 URL: https://issues.apache.org/jira/browse/CB-1658
             Project: Apache Cordova
          Issue Type: Bug
          Components: Android
    Affects Versions: 2.2.0
            Reporter: Joe Bowser
            Assignee: Joe Bowser
            Priority: Blocker
             Fix For: 2.2.0


Currently when the back button is pressed, the app always closes.  This is on the current master branch.  This is an issue on Android 4.1.0  We don't get into the CordovaWebView to even check the history, so most likely this is an issue with DroidGap.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (CB-1658) Back Button closes app instead of using history

Posted by "Joe Bowser (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-1658?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joe Bowser resolved CB-1658.
----------------------------

    Resolution: Fixed

We need to check to see if we're on the first page of the history, because we don't pop off the stack, and canGoBack() doesn't work!
                
> Back Button closes app instead of using history
> -----------------------------------------------
>
>                 Key: CB-1658
>                 URL: https://issues.apache.org/jira/browse/CB-1658
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.2.0
>            Reporter: Joe Bowser
>            Assignee: Joe Bowser
>            Priority: Blocker
>             Fix For: 2.2.0
>
>
> Currently when the back button is pressed, the app always closes.  This is on the current master branch.  This is an issue on Android 4.1.0  We don't get into the CordovaWebView to even check the history, so most likely this is an issue with DroidGap.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1658) Back Button closes app instead of using history

Posted by "Simon MacDonald (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1658?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13475249#comment-13475249 ] 

Simon MacDonald commented on CB-1658:
-------------------------------------

check to see if this change is the culprit:

https://git-wip-us.apache.org/repos/asf?p=incubator-cordova-android.git;a=commit;h=3e6a7cbdf54459ed098260c6b59ce60f4c68e17a

As far as I know things were working okay pre revert history check in.
                
> Back Button closes app instead of using history
> -----------------------------------------------
>
>                 Key: CB-1658
>                 URL: https://issues.apache.org/jira/browse/CB-1658
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.2.0
>            Reporter: Joe Bowser
>            Assignee: Joe Bowser
>            Priority: Blocker
>             Fix For: 2.2.0
>
>
> Currently when the back button is pressed, the app always closes.  This is on the current master branch.  This is an issue on Android 4.1.0  We don't get into the CordovaWebView to even check the history, so most likely this is an issue with DroidGap.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1658) Back Button closes app instead of using history

Posted by "Joe Bowser (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1658?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13475369#comment-13475369 ] 

Joe Bowser commented on CB-1658:
--------------------------------

I'm not sure if that's the culprit.  For some reason we had to override the onKeyDown.  I've added handler code in onKeyDown in CordovaWebView to handle this and it appears to be mostly working.  There is a bug that appears on Android 2.x with the text field, but other than that we are in good shape.
                
> Back Button closes app instead of using history
> -----------------------------------------------
>
>                 Key: CB-1658
>                 URL: https://issues.apache.org/jira/browse/CB-1658
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.2.0
>            Reporter: Joe Bowser
>            Assignee: Joe Bowser
>            Priority: Blocker
>             Fix For: 2.2.0
>
>
> Currently when the back button is pressed, the app always closes.  This is on the current master branch.  This is an issue on Android 4.1.0  We don't get into the CordovaWebView to even check the history, so most likely this is an issue with DroidGap.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira