0
我有关于在imageview中使用我的回收位图的问题。回收工作好还是不好?在onDestroy()
我在imageview中使用此代码来回收图像。
drawable = imglist1.getDrawable();
if (drawable instanceof BitmapDrawable) {
BitmapDrawable bitmapDrawable = (BitmapDrawable) drawable;
Bitmap bitmap = bitmapDrawable.getBitmap();
bitmap.recycle();
}
我把它的onDestroy方法
@Override
protected void onDestroy() {
super.onDestroy();
...
}
我在imageviews图像(位图) 时开放新的活动(调用的onDestroy())
开放新活动后不能看到的变化在Android显示器的内存。
的Android显示器
如何控制,如果回收工作好,还是怎么能增减内存?
记忆它是来自图像浏览的大部分位图。
感谢想法
我想要在打开其他活动时全部回收。显示器内存上的 – trip07
不显示空闲内存 – trip07