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.

  1. the point generating bitmap fragment not recycled.
  2. 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

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -