开发者

What are the various function to free memory in Android?

开发者 https://www.devze.com 2023-02-22 16:47 出处:网络
Could you please tell me what are the various functions which we could use开发者_JS百科 to free memory on android device. One i have figured out is KillBackgroundProcess().

Could you please tell me what are the various functions which we could use开发者_JS百科 to free memory on android device. One i have figured out is KillBackgroundProcess().

Are there more functions like this?


  • MediaPlayer#release
  • AudioTrack#release
  • Bitmap#recycle
  • TypedArray#recycle

Many of the heavier objects or objects expected to be used and reused frequently have release or recycle methods. The above are the main ones I've used.

For further examples see the API search results for:

  • recycle
  • release
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号