I have not been using Processing for long (less than a week) but I have made loads of progress and have an android app where you can move a square around the screen and go into an options menu. It works with all screen resolutions.
Anyway, I can use the menu button using this script:
void keyPressed() {
if (key==CODED && keyCode == MENU) {
//do stuff
}
}
So, I can change MENU to BACK but no matter what I try, I cannot seem to prevent my app from exiting when the back button is pressed. I have tried keyCode = 0 and keyCode = 1 in where I put the comment saying "do stuff".
I am using Processing 2 (stable release) and ANY help is appreciated.