When you are creating a Intel XDK app you are likely to develop a multipage app. A multipage app can have multiple HTML files each indicating a page or else you can use libraries like jQuery mobile or Intel foundation to create multiple pages.
Problem with Multiple pages in Android
When you have multiple pages in form of multiple HTML files, clicking the back button takes you to the previous page. This is want you wanted!!!.
But when create multiple pages using jQuery mobile or any other library, clicking the back button actually takes you away from the app. This is not what you wanted!!!! In this case you intercept the back button and change page manually.
Here is code snippet on how to intercept back button:
//this function intercepts the backbutton click. When user clicks the back button it fires the intel.xdk.device.hardware.back event.
intel.xdk.device.addVirtualPage();
},false);
document.addEventListener("intel.xdk.device.hardware.back", function() {
//continue to grab the back button
intel.xdk.device.addVirtualPage();
}, false);
On emulator you can emulate this event also