Android - How to start the exact same activity every time the app is opened up?

前端 未结 4 1747
南笙
南笙 2020-12-22 02:38

In a nutshell, to give you an example, I basically have an app with 3 activities: Activity1 Activity2 StartActivity

StartActivity contains two buttons that correspon

4条回答
  •  北海茫月
    2020-12-22 02:52

    Generally the way it works (from what I understand) is you use the BACK button to EXIT the activity, and the HOME button will essentially "minimize" the activity - bringing you back to whatever activity was left open.

    While you should leave this functionality the same, you can override the home button to completely exit your application.

提交回复
热议问题