Possible to finish() my activity when Home is pressed?
by Matt Kanninen » Fri, 26 Mar 2010 08:23:07 GMT
Sponsored Links
I think onPause is called. It will be hard to only close your
activity in response to Home key presses, but I think you can get it
to call finish in all cases where the Home button is pressed.
--
Possible to finish() my activity when Home is pressed?
by And-Rider » Fri, 26 Mar 2010 14:27:46 GMT
I am not sure about your exact requirement but if u want to launch the
parent activity each time app is launched from home add
android:clearTaskOnLaunch="true" in your manifest to your parent
activity.This should clear the stack on launch.
--
Sponsored Links
Possible to finish() my activity when Home is pressed?
by Matt Kanninen » Sat, 27 Mar 2010 07:18:45 GMT
Um, isn't an activity pause any time it's display is no longer
displayed? Home is a special activity, but it's still an activity?
When does onPause get called then?
> >