[android-developers] Re: Memory leaks when using bitmaps in android

2011-12-21 Thread shyama
Sorry for the large code. Thanks for your help. What I would like to know is when to use weak references and if it is a good option while using Bitmaps? If so how does it help? /** This is the onPause function which releases the bitmap when the imagebutton is clicked and gallery is displayed.

[android-developers] Memory leaks when using bitmaps in android

2011-12-20 Thread shyama
to change it. Thanks, Shyama -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com

[android-developers] Re: Memory leaks when using bitmaps in android

2011-12-20 Thread shyama
sure that the garbage collection happens right after the bitmap is recycled? Would it be helpful to implement Weak references for this scenario? to On Dec 19, 3:10 pm, shyama shyama.asoka...@gmail.com wrote: I know this question has been asked over and over again in these forums. But the reason