You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Joe Bowser (JIRA)" <ji...@apache.org> on 2015/09/21 22:47:04 UTC

[jira] [Commented] (CB-9672) Device Back Button Works only once in all html pages When i install app

    [ https://issues.apache.org/jira/browse/CB-9672?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14901365#comment-14901365 ] 

Joe Bowser commented on CB-9672:
--------------------------------

What exactly are you trying to do? Once you override the back button, you're dealing with your app's state, and you need to have code to handle it so that you can actually exit your application.

> Device Back Button Works only once in all html pages When i install app
> -----------------------------------------------------------------------
>
>                 Key: CB-9672
>                 URL: https://issues.apache.org/jira/browse/CB-9672
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, CordovaLib
>    Affects Versions: 4.1.1
>         Environment: windows 8.1 Android adt eclipse
>            Reporter: irfan baig
>              Labels: features
>   Original Estimate: 12h
>  Remaining Estimate: 12h
>
> Device Back Button Works only once in all html pages When i install app.
> Code:
> function onLoad() {
>     document.addEventListener("deviceready", onDeviceReady, false);
> }
> // device APIs are available
> //
> function onDeviceReady() {
>     // Now safe to use the Cordova API
> 	/* Registering the basic events associated with device hardware */
> 	document.addEventListener("backbutton", function() {
>     	$("#back").click();
>     }, false);
> }



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org