Android App Exit Button

后端 未结 10 1273
鱼传尺愫
鱼传尺愫 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:18

    Some apps alter the configuration of the device while running or consume lots of CPU or data. You may want to give users an option to Exit the app altogether.

    There are proper usecases for an Exit button.

    For example, an app i made also needs to manage WiFi networks: the device configuration is changed continuously. Terrific and all while app is in active use, in this case a user would expect the behavior to effectively stop after exiting the application.

    So my application has an Exit button mainly to cleanup the WiFi configs it created. I could make a button Stop and Cleanup, but no user would understand. They just want to turn the app off, thus Exit.

    • App running: wifi managed by app.
    • App exited: diy/android wifi.

    Right now, choosing Exit in my application does the cleanup followed by a finish(), but the application itself lingers in the background. Functionally ok but confusing users. I could make a toggle action named "wifi feature on/off" but that wont make things simpler.

提交回复
热议问题