Organizational Research By

Surprising Reserch Topic

how to kill an application with all its activities


how to kill an application with all its activities  using -'android,kill'


  Possible Duplicate:
  Quitting an application - is that frowned upon?  




I want to offer the user an option to exit the application as I need to delete some sensitive data, which is stored in the SharedPreferences as long as the application needs it.

As soon as the user wants to exit, the password in the SharedPreferences should be wiped and of course all activities of the application should be closed (it makes no sense to run them without the known password - they would crash).

How can I do that?

System.exit(0) and finish() only exit the current activity - useless. I know there is a taskmanager app. How is that one doing it? It's able to kill the whole application...
    

asked Sep 21, 2015 by tushar2k6
0 votes
11 views



Related Hot Questions

6 Answers

0 votes
NULL
answered Sep 21, 2015 by deepak
0 votes
NULL
answered Sep 21, 2015 by vijaygupta1980
0 votes
NULL
answered Sep 21, 2015 by sameer rathore
0 votes
NULL
answered Sep 21, 2015 by virendra.bajaj
0 votes
NULL
answered Sep 21, 2015 by ankitarajoria4
0 votes
NULL
answered Sep 21, 2015 by sujata naik

...