Mediate on this:

http://developer.android.com/guide/topics/fundamentals.html#procthread

and

http://developer.android.com/guide/topics/fundamentals.html#actlife

You don't need to terminate processes in Android, they are managed by the system. Focus on cleaning up whatever your Activities do, it's usually enough to override onStart/onStop and/or onResume/onPause.

-- Kostya

28.08.2010 11:50, Yaniv Gal пишет:
I started to develope an application.
When I wanted to close the application I clicked on the home screen,
but the app is still playing in the background.
Than I tried to click on the "back" key, but nothing happend, so I've
created a key event listener for the 'back" key, and inside that
method I wrote finish();
Now my app is closing but I think it's still running in the
background, because when I go to "manage applications" I can still see
it in the "running" tab, and if I press it, I see I can click on the
"force close" to actually close the app.

What do I need to do in order to really close the app without leaving
it open (one way or another)?



--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

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