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. Where would you store a secret?

Hello all,

I have a little doubt, I have been reviewing the documentation and I
have found there are several ways to store information in the device,
but I would like to use one that is secure and is only accessed by my
application. That's why I guess that I only have two options, which
are files or the SQLite database (http://developer.android.com/guide/
topics/data/data-storage.html)

Could you tell me which would be the best choice?

Thanks a lot

--~--~---------~--~----~------------~-------~--~----~

2. Android Developers Needed in Singapore

Dear fellow developers,

I am working on a mobile application that relates to media content
delivery that I am building on the Android platform. Now I am trying
to look for Android developers in Singapore who is interested in
taking on this project. If you are from Singapore and is interested,
please contact me via my email (chu...@gmail.com) and we can meet up
to discuss about the details. Thank you.

Cheers
Zi Yong
--~--~---------~--~----~------------~-------~--~----~

3. Problem with SDK 1.1 - can not see javadoc

4. Routes and Driving Directions in Android application

5. I am facing problem in two android simulator communication

6. Contacts number retriving problem

7. Accept self-signed certificate