gpt4 book ai didi

android - 为什么 Android 应用程序不提供 "Exit"选项?

转载 作者:塔克拉玛干 更新时间:2023-11-02 08:20:55 27 4
gpt4 key购买 nike

Android 开发人员指南中是否有某些内容阻止开发人员提供“退出”(停止运行)应用程序的选项从应用程序本身

我喜欢多任务处理等等,但我不清楚为什么:

  • 绝大多数应用程序没有自己的退出功能,因此只能一直运行
  • 不要让您在打开手机时选择是否运行 - 它们只是默认设置

这两件事都会导致内存使用量不断增加,并且您的设备一直都在运行这种性能负担,尽管您可能只希望某些应用程序运行一些时间

我错过了什么吗?

最佳答案

Is there something in the Android developer guidelines that disuadea developers from providing the option to "exit" (stop running) an application from within the application itself?

是的。通常不需要它,就像通常不需要重新启动 Web 服务器一样,因为某些使用浏览器的用户决定(她)他已经完成了 Web 应用程序。

the vast majority of apps don't have their own Exit functions and hence just keep running forever

它们不会永远运行。 Android 会根据需要关闭。

don't give you a choice about running when you turn on the phone - they just do by default

那些开发者aren't paying attention to me .

Both of these things lead to memory usage constantly increasing

一般不会。如果您发现执行此操作的特定应用,请将其卸载。

and your device running with this performance burden all of the time

一般不会。如果您发现执行此操作的特定应用,请将其卸载。

此外,此问题与 this one 重复.

关于android - 为什么 Android 应用程序不提供 "Exit"选项?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2439978/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com