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?





> >



Other Threads

1. Getting hold of PreferenceActivity Views from the xml file

Yes that worked

I used:

timeLimitPreference = getPreferenceScreen().findPreference
("time_limit");

to get hold of the preference and then:

timeLimitPreference.setOnPreferenceChangeListener

to to validate the preference returning false if it was no successful
and thus canceling the change.

cheers





-- 

2. Updating my calendar

Hello

Click on the link below and please enter your birthday for me.  It will take 
less than one minute.

http://www.birthdayalarm.com/bd2/86034545a160384687b1489515042c102571688d1386

Thank You,
Prasant

-- 

3. Cannot build Android source in Ubuntu

4. Your Best App?

5. ROM : Cyanogen V.4.2.8 is OUT!!! :D

6. how to change the image view at runtime by clicking on the particular image view

7. Motorola Droid On A Fast Boat (camcorder demo)