Do Android automatically recycle the bitmaps sometimes? -
i try simple can.i have 1 activity , fragments replaced in frequently.main work done on each fragment manipulate bitmap viz applying sticker,rotate,filters etc... each fragment has method return manipulated bitmap , manipulated bitmap stored in reference of activity parent activity has class member variable of bitmap type holds latest manipulated bitmap of fragment. in code had never recycled bitmap explicitly. still when using bitmap parent activity's reference in 1 of fragment,its throwing exception bitmap recycled. have checked @ each point.
- the point generating bitmap fragment not recycled.
- the point @ assigning bitmap fragment parent activity's variable not recycled. when fetch bitmap again separate fragment shows bitmap recycled.
hope got clear picture of problem..please guys
Comments
Post a Comment