如果activity结束了就
bitmap.recycle();
如果涉及到重复加载按钮的:
if(bitmap != null && !bitmap.isRecycled()){
bitmap.recycle();
bitmap = null;//这里最好加上这一句
Log.e("freeBitmap", "=============recycle bitmap=======");
}
标签:oom,isRecycled,bitmap,recycle,android,null,freeBitmap
From: https://blog.51cto.com/u_2198048/6196306