[android-developers] Re: Intercept home button?

2009-08-02 Thread JP
Actually I found a method a year ago or so. It's buried in one of the posts on this list if you bother to look for it... but really you shouldn't as it's generally not advisable to grab the HOME and BACK buttons as it breaks reset of and access to the back stack that users expect through the HOME

[android-developers] Re: Intercept home button?

2009-08-02 Thread Romain Guy
No there is no way to know. Also onStop() can happen in other cases (for instance if the user switches to another app, not necessarily by going back Home.) On Sun, Aug 2, 2009 at 4:21 PM, Wah wrote: > > Hi: > > Thanks for the suggestion. It turned out even when sliding out the > keyboard, the on

[android-developers] Re: Intercept home button?

2009-08-02 Thread Wah
Hi: Thanks for the suggestion. It turned out even when sliding out the keyboard, the onStop() function is also called. Is there a way to tell the difference between onStop() from sliding keyboard versus the home button? Wah On Jul 31, 12:02 am, Saurav Mukherjee wrote: > u can try it this way..

[android-developers] Re: Intercept home button?

2009-07-31 Thread Saurav Mukherjee
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,

[android-developers] Re: Intercept home button?

2009-07-30 Thread Jack Ha
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 d