1.http://blog.jteam.nl/2009/09/17/exploring-the-world-of-android-part-2/


2.Recycle Drawable:

Drawable.setCallback(null)


View.unscheduleDrawable(who)

BitmapDrawable.getBitmap().recycle()


3.New a thread to decode in background


4. Cache drawable(bitmap) (limit to a number) and Recycle bitmap when out of current cache scope.


ImageView.setImageBitmap(null)

bitmap.recycle()

bitmap = null

此处有个好贴,全面介绍了如何应对内存问题。

更多相关文章

  1. android释放内存的一个办法
  2. 操作内存卡的常用代码
  3. android 加载图片防止内存溢出
  4. Android获取系统的内存使用率
  5. android 缩放图片与内存溢出
  6. Android调用C++实现共享内存(Native层)
  7. Android Dalvik 内存管理学习

随机推荐

  1. Android(安卓)Studio禁用 install run
  2. android之ListView布局
  3. 比较详细的handle机制
  4. Android界面基本属性
  5. Android(安卓)C编程技巧
  6. android:AssetManager
  7. 【转】android AsyncTask 为 多任务 多线
  8. Android(安卓)build system note
  9. Android(安卓)Context原理分析
  10. Android(安卓)编程下 Touch 事件的分发和