I can start my app and close later. But after closing, if I go to Settings-->Applications-->Manage Applicaitons and select my app, the Force Close button is still active which means my app is running behind the scenes. Why is this...???
Asked
Active
Viewed 613 times
2 Answers
2
When you close your application, the process of it is still active and will be active while/if system will not kill it in the future. So in Settings-->Applications-->Manage Applicaitons you can by force kill process of your application. This is feature of Android OS.

drifter
- 683
- 1
- 11
- 24
-
Sorry, I think some words are missing from your answer that's why I am unable to understand your reply. Can you elaborate again please...??? – Khawar Raza Sep 28 '11 at 15:02
-
See here: http://stackoverflow.com/questions/2033914/quitting-an-application-is-that-frowned-upon/2034238#2034238 – drifter Sep 28 '11 at 15:11
-
Sorry for my English. Did you get answer for your question? – drifter Sep 28 '11 at 15:17
0
Use this to close your application. It still show you Force Close button but it's closes all your activity.
Intent homeIntent = new Intent(Intent.ACTION_MAIN);
homeIntent.addCategory( Intent.CATEGORY_HOME );
homeIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
startActivity(homeIntent);

Ravi Patel
- 2,136
- 3
- 32
- 48