Back Button in Android
in
Android Processing
•
1 year ago
Can somebody please tell me what is wrong with this code?
When I include it in my sketch, it crashes the first time I run it, but only the first times. Also, when the back button is pressed, the sketch still exits. The menu button works fine though.
- void keyReleased() {
- if (key==CODED){
- if(keyCode==MENU || keyCode==BACK){//MENU and BACK keys
- //do things
- }
- }
- keyCode=0;
- }
1