[jbosstools-issues] [JBoss JIRA] (JBIDE-16053) Aerogear: backbutton listener doesn't work on the android device

Gorkem Ercan (JIRA) jira-events at lists.jboss.org
Wed Nov 20 11:26:06 EST 2013


     [ https://issues.jboss.org/browse/JBIDE-16053?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gorkem Ercan updated JBIDE-16053:
---------------------------------

    Fix Version/s: 4.1.1.CR1

    
> Aerogear: backbutton listener doesn't work on the android device
> ----------------------------------------------------------------
>
>                 Key: JBIDE-16053
>                 URL: https://issues.jboss.org/browse/JBIDE-16053
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: aerogear-hybrid
>            Reporter: Ilya Buziuk
>            Assignee: Gorkem Ercan
>              Labels: respin-a
>             Fix For: 4.1.1.CR1, 4.1.1.Final
>
>
> http://docs.phonegap.com/en/3.1.0/cordova_events_events.md.html#backbutton  - backbutton event doc
> Steps for verifying:
> 1. Create new Hybrid Mobile Application Project
> 2. Update index.html with the sample from the documentation:
>  {code:title=index.html|borderStyle=solid}
> <!DOCTYPE html>
> <html>
>   <head>
>     <title>Back Button Example</title>
>     <script type="text/javascript" charset="utf-8" src="cordova.js"></script>
>     <script type="text/javascript" charset="utf-8">
>     // Wait for device API libraries to load
>     //
>     function onLoad() {
>         document.addEventListener("deviceready", onDeviceReady, false);
>     }
>     // device APIs are available
>     //
>     function onDeviceReady() {
>         // Register the event listener
>         document.addEventListener("backbutton", onBackKeyDown, false);
>     }
>     // Handle the back button
>     //
>     function onBackKeyDown() {
>     	alert(1);
>     }
>     </script>
>   </head>
>   <body onload="onLoad()">
>   </body>
> </html>
> {code}
> 3. Run the app on the android device
> 4. Press the back button when the app will be ready
> 5. ERROR: App will be closed - no alert will be shown

--
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


More information about the jbosstools-issues mailing list