How to exit the application completely from any screen

by elephantbug » Sat, 13 Sep 2008 15:55:38 GMT


Sponsored Links
 Hi,

Is there a way to exit the application completely at any place?

call finish() will only exit the current activity.

I tried to getApplication() from activity and call its onTerminate()
directly... but it seems not working at all...

Anyone can give any clue how to do it?

Thanks


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



How to exit the application completely from any screen

by Romain Guy » Sat, 13 Sep 2008 15:58:55 GMT


 There is no need to do this. The user can just press the Home key to
"exit" the app.






-- 
Romain Guy
www.curious-creature.org

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


Sponsored Links


How to exit the application completely from any screen

by plusminus » Sun, 14 Sep 2008 03:16:03 GMT


 otherwise, just grab a ""flag"" in onActivityResult(...) of the
"parent"-activity and call .finish() also.

Works really smooth with me.

Regards, plusminus
 http://anddev.org 
#  Worlds largest Android Development Community / Tutorials




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



How to exit the application completely from any screen

by Pau » Sun, 14 Sep 2008 03:46:00 GMT


 Hi,

if you kill the application completely:

int pid = android.os.Process.myPid();
android.os.Process.killProcess(pid);






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



How to exit the application completely from any screen

by elephantbug » Sun, 14 Sep 2008 03:46:00 GMT


 but our app wants to prevent user from continuing use the app. Maybe
freeze the app can also do the trick, which forces user to use home
dutton. There should be a way to auto exit , just do not know how.
Anyone?





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



How to exit the application completely from any screen

by Guillaume Perrot » Sun, 14 Sep 2008 17:18:54 GMT


 For my settings editor activity I use the following manifest flags:
allowTaskReparenting = true
finishOnTaskLaunch = true
and I save the settings at onPause()

These flags will finish the activity once it will brought to
background for any reason (HOME, BACK, another event...)





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



Other Threads

1. Location of display code in android 2.6.36 kernel.

Can someone please point me to location of display code specially DSI
(display serial interface) code in android 2.6.36 kernel.

Also, are there any testcase files to test the display(DSI).

-- 

2. Google Updates buat SPICA Froyo 2.2 (CM)

Link http://goo.gl/W2rAn

-> maps (5.0.0) <http://dl.dropbox.com/u/14551460/maps5.0.0.zip>

-> Youtube (2.1.6) <http://dl.dropbox.com/u/14551460/youtube2.1.6.zip>

-> Gmail (2.3.2.) <http://dl.dropbox.com/u/14551460/gmail2.3.2.zip>

-> market (2.2.6) <http://dl.dropbox.com/u/14551460/market2.2.6.zip>

-> Voice Search (2.1.1)<http://dl.dropbox.com/u/14551460/VoiceSearch2.1.1.zip>


-> Google update pack 16.12.2010 (all 5
together)<http://dl.dropbox.com/u/14551460/google_update_pack_16-12-2010.zip>


*apply in recovery <http://forum.samdroid.net/wiki/showwiki/Recovery> / It
will overwrite old versions in system/app*

*all tested & working on Android 2.2 (CM) , for 2.1 see further posts ...*
*
*
*

[image: 
8bfcb9a4bc682c4e1c535ae7743cc5ce.jpg]<http://forum.samdroid.net/attachments/f10/4934d1292174466-google-updates-8bfcb9a4bc682c4e1c535ae7743cc5ce.jpg>
 [image: 
208200f948a1d139c0a15e50d564a502.jpg]<http://forum.samdroid.net/attachments/f10/4935d1292174507-google-updates-208200f948a1d139c0a15e50d564a502.jpg>
 [image: 
e8e1f9d1928db6048e23132975095eed.jpg]<http://forum.samdroid.net/attachments/f10/4936d1292174562-google-updates-e8e1f9d1928db6048e23132975095eed.jpg>
 [image: 
cap201012121040.jpg]<http://forum.samdroid.net/attachments/f10/4937d1292174582-google-updates-cap201012121040.jpg>
 [image: 
cap201012161805.jpg]<http://forum.samdroid.net/attachments/f10/5017d1292519682-google-updates-cap201012161805.jpg>
*
*
*
*
*
*Salam,*
*dj*

-- 
===============
"

3. Secure love one鈥檚 life with e conomic support

4. [WTS]: ACER LIQUID Eclair

5. Listening to Home key Intent

6. location for insmod scripts

7. beli desire hd di spore