SyntaxFix
Write A Post
Hire A Developer
Questions
You can also simply put onBackPressed() in your onClick listener. This causes your button to act like the default "back/up" buttons in android apps!
onBackPressed()