I agree with Frank & Mark: you don't need to detect the HOME key to do what you want. Simply doing the check as part of the activity life cycle should be sufficient.
However, I think you can detect when the HOME key is pressed by overriding onUserLeaveHint. I haven't yet had a reason to use it, but according to the docs it will only be called if the user put the app in the background (e.g., by pressing HOME). Cheers, Steve On Aug 31, 1:39 pm, Frank Weiss <fewe...@gmail.com> wrote: > When the user "launches the app" from the home screen, the activity > given in the manifest is started. I suppose the licensing check should > be done in that activity's lifecycle methods. -- 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