Are you using onKeyUp()?
Use just onKeyDown() in Android 1.x or onBackPressed() in Android 2.x
More Related Contents:
- Override home and back button is case a boolean is true
- Override Android Backbutton behavior only works on the first page with PhoneGap
- How to use Android studio
- Android – How To Override the “Back” button so it doesn’t Finish() my Activity?
- How to exit from the application and show the home screen?
- Custom ImageView with drop shadow
- Override Power button just like Home button
- Android Overriding onBackPressed()
- Android – Switch ActionBar Back Button to Navigation Button
- How to exit when back button is pressed?
- Android emulator camera custom image
- Phonegap – navigator.app.backHistory() not working on HTML back button
- Overriding referenced style attributes
- Android: Quit application when press back button
- Android back button and MediaController
- how to close android app completely
- @Override annotation error (android prefs)
- How can I use external JARs in an Android project?
- Android check internet connection [duplicate]
- Put constant text inside EditText which should be non-editable – Android
- JPEG images have different pixel values across multiple devices
- TextInputLayout :How to give padding or margin to hint?
- could not access the package manager. is the system running while installing android application
- How to load Image into ImageView from Url using Glide v4.0.0RC1
- How do I retrieve the logged in Google account on android phones?
- Zipalign – Command not found – MAC terminal
- Android: mkdirs()/mkdir() on external storage returns false
- How can I change default black dim background “color” (not the amount of dim) of Dialog?
- How to launch front camera with intent?
- How to generate the AAC ADTS elementary stream with Android MediaCodec