简体   繁体   English

应该在Android中释放的系统资源

[英]System resources that should be freed in Android

What are the resources that an Android developer should keep in mind to release when his/her application stops or pauses? Android开发人员在其应用程序停止或暂停时应该牢记释放哪些资源?

For instance, and according to developer.android.com, Camera resource should be released at onPause by calling ""camerObject.release()" to save resources and make it available to other applications. Is there other resources that should be released by developer? 例如,根据developer.android.com,应在onPause上通过调用““ camerObject.release()”来释放Camera资源,以节省资源并使它可用于其他应用程序。是否有其他资源应由Developer释放?

不使用设备时,必须释放设备的所有硬件资源,例如相机,麦克风或任何其他传感器或诸如wifilock之类的服务。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM