Quitting an application

straybullet

Member
Licensed User
Longtime User
Ok Activity.finish is not doing what I need because my apps runs multiple modules and it just exits the current one and goes to the previous. Is there a way to quit everything at once?
 

margret

Well-Known Member
Licensed User
Longtime User
You can use ExitApplication. This will kill the entire app.

NOTICE: It is NOT recommended to use this. Activity.Finish is the proper way to exit. What you should do is in each other Activity you are running, use Activity.Finish to return to the calling Activity. This way when you exit your Main Activity the other Activities will all ready be closed.

Margret
 
Upvote 0
Top