logo       

[android-developers] Re: Intercept home button?: msg#04179

AndroidDevelopers

Subject: [android-developers] Re: Intercept home button?

u can try it this way...
wen home is pressed, onPause and then onStop are called.

wen resumed on long press of home button, the following functions gets called in order:

onRestart
onStart
onResume
onPostResume

try n override these functions to do ur work...

hope this helps...

cheers!


On Fri, Jul 31, 2009 at 9:09 AM, Jack Ha <jack.ha@xxxxxxxxxxxx> wrote:

You won't be able to detect that as KeyEvent.KEYCODE_HOME can't be
intercepted. It is for internal use only.

--
Jack Ha
Open Source Development Center
ãTã ã ãMobileã stick together

The views, opinions and statements in this email are those of
the author solely in their individual capacity, and do not
necessarily represent those of T-Mobile USA, Inc.

On Jul 30, 8:09Âpm, Wah <mobic...@xxxxxxxxx> wrote:
> In an activity, how do detect the fact that the user pressed 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@xxxxxxxxxxxxxxxx
To unsubscribe from this group, send email to
android-developers-unsubscribe@xxxxxxxxxxxxxxxx
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | Mail Home | sitemap | FAQ | advertise