What are the various function to free memory in Android?
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
精彩评论