i have a application which uses drawer widget..so in that drawer js file i have a button which users can click and exit..but it is not working.
Here is my index.js file
var win = $.index;
here is my drawer.js file
var button = $.exit;
button .addEventListener('android:back',function(e) {
win.close();
});
When the user click the button the app should exit..Thank you!