Backbutton android didn't work



I’m using F7 with cordova to create an app and a faced an issue that i can’t find a answer. How can i make the backbutton (the physical button) activate the function back() ? Cause, now when i click the “backbutton” its only close the app…




document.addEventListener(“backbutton”, function() {
}, false); (router.back)


I am developing the framework using my hp android tablet and the back button is not responding. I took help from hp customer support and downloaded some firmware after which it worked.