Controling back button

First, back button added to the head:
How can I control to which page this will navigate? (e.g. I do not want to go back to the previous page, rather to different page).

Second, back button of adroid and iOS devices, on login page, I want to add exit the app function when back button is clicked. I tried to use on page load/backbutton the following:

App.exit();


In adroid, back button was entirely disabled for the whole App. So which way is the correct for both android and iOS.

Note: in App setting > external resource > libraries version, I'm using v2.0

Thanks
1 person has
this question
+1
This topic is no longer open for comments or replies.