简体   繁体   中英

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?

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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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