Re: [mono-android] Disposing method in View

2012-06-26 Thread Sayed Arian Kooshesh
over ride ondestroy or have a look here to see what's good. http://d--buzz.com/wp-content/uploads/2011/07/android_application_life_cycle.gif On Mon, Jun 18, 2012 at 9:40 AM, Tomasz Cielecki wrote: > The bitmap itself has a Recycle() method this can be used to tell the > Java GC that the object h

Re: [mono-android] Disposing method in View

2012-06-19 Thread Matthew Leibowitz
Hi, Thanks for the replies, but I think I may have presented the problem incorrectly. I have a problem of knowing when a *view *will be disposed of. I have created a Control that derives from View. This control has a temporary cache of low res images that it uses. I then use this Control in vario

Re: [mono-android] Disposing method in View

2012-06-18 Thread Jonathan Pryor
On Jun 18, 2012, at 10:16 AM, Matthew Leibowitz wrote: > As my last question suggested, I am working with images. I cache the lo res > in an array member of a view, but how do I dispose of the images? By Dispose()ing of them. :-) > I tried overriding the Dispose(bool) method, but that doesn't se

Re: [mono-android] Disposing method in View

2012-06-18 Thread Matthew Leibowitz
Hi Thanks, but this doesn't really help as I don't know where to call recycle from. I can't use the activity methods as the bitmaps are stored in the View, which is in a class lib that is shared in various places. Is there anything such as a View lifecycle? Like OnDestroyingView? On Mon, Jun 18,

Re: [mono-android] Disposing method in View

2012-06-18 Thread Tomasz Cielecki
The bitmap itself has a Recycle() method this can be used to tell the Java GC that the object has been disposed. You can override the Finish() method in your activity to dispose the objects you don't need anymore. On Mon, Jun 18, 2012 at 4:16 PM, Matthew Leibowitz wrote: > Hi all, > > As my last