People help me in this one ...
I'm trying to do the backbutton
function, but I tried some way and they all cause the application to quit. No emulate is already working.
I do the following:
function onLoad() {
document.addEventListener("deviceready", onDeviceReadyBack, false);
}
// device APIs are available
//
function onDeviceReadyBack() {
// Register the event listener
document.addEventListener("backbutton", onBackKeyDown, false);
}
// Handle the back button
//
function onBackKeyDown() {
window.history.back();
//alert("entro aqui");
}
How do I not quit the application?