Craig wrote:
> You can explicitly handle KEYCODE_BACK in your Activity's onKeyDown()
> function.

Note that this is not recommended for Android 2.0 and forward. Use
onBackPressed() if possible, or both onKeyDown() and onKeyUp() otherwise:

http://developer.android.com/sdk/android-2.0.html#api-changes

(scroll down to "Key events executed on key-up" portion)

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

_The Busy Coder's Guide to Android Development_ Version 2.8
Available!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to