Aha ... With "eventually" you mean that if Android does not need
RAM the process could be around for a while (or until the phone
is rebooted)? Is finish() synchronous and it occurs immediately?
I am wondering if it is possible to exit the activity but
subsequently
ask Android to terminate it immediately ...

On a different note - how far back do your books go? Did you cover
1.6 and 2.1?

On Aug 27, 12:03 pm, Mark Murphy <[email protected]> wrote:
> On Sat, Aug 27, 2011 at 11:56 AM, kypriakos <[email protected]> wrote:
> > I issue a finish() on a single process app, it exits to the home
> > screen of the
> > phone but a ps shows that the process is still running.
>
> Android will terminate the process eventually. Android keeps the
> process running initially, in case the user happens to pop right back
> into it, so they can get into the app more quickly and with less
> battery use. Once Android starts needing RAM for other apps, though,
> your unused process will be terminated.
>
> > Is this the
> > proper
> > way to terminate an app? I thought so.
>
> finish() is the proper way to exit an activity. You do not "terminate
> an app" on Android any more than you "terminate a Web app".
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android 3.1 Programming Books:http://commonsware.com/books

-- 
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