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
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
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..
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,
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
5 matches
Mail list logo