[android-developers] Exiting Application

2010-08-17 Thread perumal316
Hi All,

I want my application to always run in the background untill being
exited properly.

Any idea how to do it?

Currently I notice after a while my application closes on it own.

Thanks In Advance,
Perumal

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Exiting Application

2010-08-17 Thread Frank Weiss
As far as I can tell, your conception of an Android application is
mistaken. The closest thing is that from time to time the Android OS
allocates memory resources, in the form of an underlying Linux
process, to an Android application so that the application's
activities and services can perform their lifecycle events. The
Android OS releases those resources when it thinks the application is
less likely to need them than other applications.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Exiting Application

2010-08-17 Thread Mark Murphy
On Tue, Aug 17, 2010 at 11:25 PM, perumal316 perumal...@gmail.com wrote:
 I want my application to always run in the background untill being
 exited properly.

 Any idea how to do it?

You can't, sorry. Android and the user have the right to close
anything they want, with or without your permission.

 Currently I notice after a while my application closes on it own.

Correct. Android will close up under-used activities to free up RAM
for other applications.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to Android Development_ Version 3.1 Available!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en