If what you want is to have a notification that the user can swipe
down and click to go back to your application, then you don't really
need to be handling key events whilst your activity is paused. What
you could do is create a service which displays the notification, and
then use an intent to launch your activity when the notification is
clicked.

BUT - I'm not sure that this is good usability design. If the user has
navigated away from your activity and if you don't need to do any
continual background processing, then you probably shouldn't show
anything in the notification panel. The user can always get back to
your app from the homescreen or via a long press on the home button.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to