I have OutOfMemory error for looong pictures gallery, if to use nice class ClsCustomGallery of Informatix.
All gallery libs of lonleystar are with strange work in the latest B4A v.6.80 version, errors, strange picture list with some extra internal pictures...
So, do we have more picture Gallery solution for unlimited pictures qty ?
Downsampling image due to lack of memory: 8
Downsampling image due to lack of memory.
Downsampling image due to lack of memory: 2
Downsampling image due to lack of memory: 4
Downsampling image due to lack of memory: 8
Downsampling image due to lack of memory: 16
Downsampling image due to lack of memory.
Downsampling image due to lack of memory: 2
Downsampling image due to lack of memory: 4
Downsampling image due to lack of memory: 8
Downsampling image due to lack of memory: 16
Downsampling image due to lack of memory: 32
Error occurred on line: 88 (Main)
java.lang.OutOfMemoryError: Failed to allocate a 64 byte allocation with 32 free bytes and 32B until OOM
at android.os.Message.obtain(Message.java:146)
at android.os.Handler.getPostMessage(Handler.java:802)
at android.os.Handler.post(Handler.java:335)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:69)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:163)
at anywheresoftware.b4a.phone.Phone$LogCat$1.run(Phone.java:751)
at java.lang.Thread.run(Thread.java:818)
java.lang.RuntimeException: Error loading bitmap (OutOfMemoryError)
at anywheresoftware.b4a.objects.drawable.CanvasWrapper$BitmapWrapper.InitializeSample(CanvasWrapper.java:570)
at anywheresoftware.b4a.objects.drawable.CanvasWrapper$BitmapWrapper.Initialize(CanvasWrapper.java:514)
at anywheresoftware.b4a.keywords.Common.LoadBitmap(Common.java:1160)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:710)
THanks, it helps. But ... if pictures qty will be several times bigger ?
I think, the view must for sure unload pictures that are not visible now to a user. And preload next to be visible...