[android-developers] Re: WeakReference containing callback interface

2013-12-16 Thread Doug
I don't know what AndroidQuery does for you exactly, but there is a general rule about how callbacks for asynchronous callbacks can work without leaking. If you need to hold a reference to anything at all related the activity or UI that needs to be updated as a result of some async work, hold

[android-developers] Re: WeakReference containing callback interface

2013-12-11 Thread Nobu Games
Why don't you check your progress bar if it's null before modifying it? If the progress bar got garbage collected it's safe to say that it is not there anymore (not visible) and any modification wouldn't make any sense at that stage. On Wednesday, December 11, 2013 8:43:56 AM UTC-6,