• Post Reply Bookmark Topic Watch Topic
  • New Topic

Exiting from application  RSS feed

 
chetan dhumane
Ranch Hand
Posts: 643
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to know how to completely exit from application.
I know finish() method , but it is related to only particular intent.

I want exit from application completely not from particular intent only.


Thanks in advance
 
Mark L. Murphy
Author
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The official recommendation is: don't do that.

The unofficial solution: System.exit(0); just like any other Java app.
 
chetan dhumane
Ranch Hand
Posts: 643
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!