Android App Exit Button

后端 未结 10 1275
鱼传尺愫
鱼传尺愫 2020-12-18 02:07

I\'m not sure whether I need to add an exit button to my app. Is there any point to doing this? And if on exiting one activity or service is not .finish() or closed properly

10条回答
  •  一生所求
    2020-12-18 02:16

    No, you don't. Read up on the activity lifecycle at developer.android.com

    On older versions of android you had to be careful not to accidentally leave a background service running and holding resources but that's been reworked.

提交回复
热议问题