SyntaxFix
Write A Post
Hire A Developer
Questions
Kotlin version of this answer:
val intent = Intent(this, YourActivity::class.java) intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK or Intent.FLAG_ACTIVITY_CLEAR_TASK) startActivity(intent) Runtime.getRuntime().exit(0)