Hi friends.
I have a page with a "grouped" listview. Every row in this listvierw has an "Image".
This page is inside a NavigationStack.
I have this exception (only one time by now). Catched by "Insight"
Java.Lang.ErrorJava.Lang.Thread caused an unexpected termination
Raw
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.m__0(object)
at Android.App.SyncContext.<>m__0()
at Java.Lang.Thread.Run()
at Java.Lang.IRunnableInvoker.n_Run(intptr, intptr)
at (wrapper dynamic-method) object.4b08456b-f994-4864-81f9-77a35f414f9c (intptr,intptr) <0x0003b>
--- End of managed exception stack trace ---
java.lang.OutOfMemoryError
at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)
at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:587)
at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:422)
at android.graphics.BitmapFactory.decodeResource(BitmapFactory.java:445)
at android.graphics.BitmapFactory.decodeResource(BitmapFactory.java:475)
at dalvik.system.NativeStart.run(Native Method)
InnerStackTraces[0]Java.Lang.Thread
I would like to know if someone can give me some help how to solve this situation, and I would like to know if there is a method in Xamarin Forms to "Clean" memory, resources not used... or Xamarin Forms do this "clean" automatically?
Thanks
Alessandro