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. Miley with Motoblur was WTB: Motorola Qliq With Motoblur BNIB

Kalo milestone user, mau pake motoblur pegimane caranya yak? Itu dah build in 
di ROM nya atau ada apk nya gituh?
Kepingin nyoba motoblur nih

---
MooKsMobile
Twit/Y!/Gtalk: @mtouriq

-- 
"Indonesian Android Community [id-android]" 

2. HTTP post to non-standard port over Wifi?

Hi,

I have trouble getting http post to work over WiFi.

The server listens at port 8080, and posting works just fine when
disabling WiFi and just using 3G.
When enabling WiFi, I always get an IOException with message 'Socket
is not connected'.

Using the standard port 80 (or opening raw sockets to other ports)
works just fine, but the combination (http + 8080 + WiFi) seems to
fail.

I've been looking for hints in the android.net package, but
unsuccessfully. Any hints are welcome..

/Per

-- 

3. : Pre-Order MotoCliq Accessories & Battery BP6X+EBC Kloter

4. cm5.0.7 test2 release

5. tablerow mixed with columns and multiline text

6. SocketTimeoutException: Read Timed Out Occurs Only via Mobile

7. biometrics api