Skip to content Skip to sidebar Skip to footer

Android Fragment: Recycle Bitmap

I am using a DialogFragment from the compatibility package. I have a Bitmap which I need to recycle when the dialog closes, but when I call findViewByID() inside onDestroyView() it

Solution 1:

onDestroyView() allows the fragment to clean up resources associated with its View, try to recycle bitmap in onDismiss or in other method that called before onDestroyView


Post a Comment for "Android Fragment: Recycle Bitmap"