I have question about use my recycle bitmap in imageview.
I use this code for recycle image in imageview.
drawable = imglist1.getDrawable();
if (drawable instanceof BitmapDrawable) {
BitmapDrawable bitmapDrawable = (BitmapDrawable) drawable;
Bitmap bitmap = bitmapDrawable.getBitmap();
bitmap.recycle();
}
I call it in onDestroy method
@Override
protected void onDestroy() {
super.onDestroy();
...
}
I have in imageviews images (bitmap) when open new activity (call onDestroy() )
after open new activity can't seen changes In android monitor memory.
android monitor
How Can control if recycle work good, or how can decreas memory?
memory it's from the most part bitmaps in imageviews.
Thanks for ideas