I need to exit Android Phonegap application by clicking on button I tried to use this code in onclick event
navigator.app.exitApp()
but it didn't work and nothing happened, So How to do it?
I need to exit Android Phonegap application by clicking on button I tried to use this code in onclick event
navigator.app.exitApp()
but it didn't work and nothing happened, So How to do it?
You need to add a listener event for the button and associate a function. Check here.
It would be a good idea to update your phonegap/cordova version to the latest build and use the code provided above.