On Tue, Dec 15, 2009 at 11:16 AM, steff <stefan.dierd...@googlemail.com>wrote:

> Having solved this, a new question arises: how can I securely exit the
> app when it loses focus, i.e. the user returns to the homescreen? I
> don't want no background process.
>

You don't.  That's not how Android works.

And please be aware -- if you are using android:configChanges because your
app doesn't work when it rotates, then this is NOT a fix.  You are just
hiding the problem, which will show up in other cases such as when the user
leaves your app, its process needs to be killed, and they later return to
it.

Please don't just use android:configChanges to band-aid over problems in
your app.  Fix your app.

-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

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

Reply via email to