I would like to know step by step how can I set the back button of the device to close the application when it pressed and not return to the previous page.
I would like to know step by step how can I set the back button of the device to close the application when it pressed and not return to the previous page.
Hi,
Please check this conversation: https://getsatisfaction.com/apperyio/...
So the only thing that I must do is to create a java script file with the following code:
document.addEventListener("backbutton", function( e )
{
navigator.app.exitApp();
}, false);
Must I call this function inside the applicatin with a special event?
Is anything else that I must do?
Nothing more. You can also take a look at here:
https://getsatisfaction.com/apperyio/...
https://getsatisfaction.com/apperyio/...