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, 2012 at 4:40 PM, Tomasz Cielecki <tom...@ostebaronen.dk>wrote:

> 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
> <mattleibowm...@gmail.com> wrote:
> > Hi all,
> >
> > 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?
> > I tried overriding the Dispose(bool) method, but that doesn't seem to be
> > called when the Activity is closed.
> >
> > What am I doing wrong? :) Is there another method/place?
> >
> > The "dispose" should be called when the containing activity is closed,
> but I
> > don't want either the Activity or the View to know about each other.
> > This is because they are used in a few places, but in slightly different
> > ways.
> >
> > Matthew
> >
> > _______________________________________________
> > Monodroid mailing list
> > Monodroid@lists.ximian.com
> >
> > UNSUBSCRIBE INFORMATION:
> > http://lists.ximian.com/mailman/listinfo/monodroid
> >
>
>
>
> --
> Med Venlig Hilsen / With Best Regards
> Tomasz Cielecki
> http://ostebaronen.dk
> _______________________________________________
> Monodroid mailing list
> Monodroid@lists.ximian.com
>
> UNSUBSCRIBE INFORMATION:
> http://lists.ximian.com/mailman/listinfo/monodroid
>
_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to