inbrain wrote:
> Please read more carefully through my description. First I spawning
> ANOTHER activity in the same task and pressing BACK button while IT IS
> VISIBLE. BACK button triggers both on this activity (effectively
> closing it) and also shows toast (so triggers the second time) for the
> base activity (which is activity A)

Don't use onKeyUp(). Use onBackPressed (Android 2.x) or onKeyDown()
(Android 1.x).

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

_Beginning Android 2_ from Apress Now 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