onKeyDown() or onBackPressed()

前端 未结 4 1981
栀梦
栀梦 2020-12-06 05:10

I want to implement the back button functionality in my application. In application whenever I\'m clicking on back button in middle my control is going to login page direct

4条回答
  •  心在旅途
    2020-12-06 05:43

    If your concern is about removing the login activity from the history stack.

    Execute finish(); in your login activity when you start any other activity from that

提交回复
热议问题