SyntaxFix
Write A Post
Hire A Developer
Questions
If you want to end an activity you can simply call finish(). It is however bad practice to have an exit button on the screen.
finish()