I have an application built in html5 and phonegap for android, by pressing the exit button I call the following function(JavaScript):
function close_window() {
if (confirm("Exit?")) {
window.close();
}
}
Window with the message “Exit?” appear, but the application does not close when you click OK, how can we close it?
Please use phonegap’s
navigator.app.exitApp() to exit the application.
Hope this helps..