You are right Flying Code. I checked this somedays before. onUserLeaveHint() getting called as soon the Home key is pressed. I checked other interruptions like pressing search key, incoming call etc. But this method only called when i press the HOME key. (I tested on a 2.1 phone)
On Aug 31, 3:49 pm, Flying Coder <[email protected]> wrote: > 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 <[email protected]> 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.- Hide quoted text - > > - Show quoted text - -- 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

