SETUP :
I have this app which has 4 activities in a linear path, really simple navigation : A -> B -> C -> D
All the activities share the
You need to explicitly recycle Bitmap used as background when you destroying your activity. Code will be like this:
@Override
protected void onDestroy () {
Drawable drawable = getView().getBackground();
if (drawable instanceof BitmapDrawable) {
((BitmapDrawable)drawable).getBitmap().recycle();
}
drawable.setCallback(null);
getView().setBackgroundDrawable(null);
super.onDestroy();
}
Maybe you need to free resources recursively for nested views, but it depends on your layout structure. This is general case