skip to Main Content

Android Studio – Up Navigation in android

When I'm pressing the back button on phone or the support action bar, it's exiting the application. How can I fix it to return to the main activity In login code: override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_login) supportActionBar?.setDisplayShowHomeEnabled(true) ....…

VIEW QUESTION
Back To Top
Search