It is much like regular java:
1. It really depends on the hardware, but you have to assume that your 
app's process can get killed. And if you have background tasks/threads 
running, they'll be killed automatically with the process (just like in 
Java).

2. Yes, just like Java. If java object become non-reachable, the objects 
will be eligible for garbage collection.

3./4. If you haven't set your android:process attribute in you app's 
components, all your app's components will run in one process. I haven't 
seen anything to the contrary with activities/services/etc. that are 
private to your own app.
   However, just like java, memory is not shared between processes. Your 
static variable will hang around, but just for their own process. Each 
process instantiates its own JVM (DalvikVM) and static variables are not 
shared between processes.

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

Reply via email to