HI San and Flying coder,
onUserLeaveHint is called whenever the activity is supposed to be
paused due to user action.

Whether it Home Or Navigation to another activity screen( caused due
to user action).
Except for incoming calls or SMS.

Thanks
Sumanth

On Aug 31, 4:15 pm, San <sanees...@gmail.com> wrote:
> 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 <av8r.st...@gmail.com> 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 <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.- 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 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