On Jan 7, 2013, at 4:21 PM, [email protected] wrote:
> I have app with several common images on ui. When I navigate between
> activities some times throw exception.
As Tom notes, your Bitmaps may be larger than necessary. Another possibility is
that your Bitmap instances are living longer than necessary, thus causing your
process to consume more memory than Android will allow:
http://docs.xamarin.com/Android/Guides/Advanced_Topics/Garbage_Collection#Helping_the_GC
> using (var d = Drawable.CreateFromPath ("path/to/filename"))
> imageView.SetImageDrawable (d);
However, in your stack trace I don't see any ACW types (no n_-prefixed
methods), so it may not be your code that's responsible for creating the Bitmap
instances; com.tapfortap.AdView.onDraw() is. You may need to consult
com.tapfortap's documentation to see how to control when Bitmaps are created,
and how to shorten their lifetime.
- Jon
_______________________________________________
Monodroid mailing list
[email protected]
UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid