I have a ViewPager
on my Kindle Fire app that adds roughly 30 views per Page Activity
. There are no references to the bitmaps once they are added (the vars are lost after the local statement block closes).
What's the easiest way to recycle all of my bitmaps when their parent view is removed? I need to do this because after swiping a few pages, my app closes because there's no more memory to allocated from because apparently non-recycled bitmaps will not release their memory.
Thoughts?