Android Question I am using LoadBitmapResize to load the images and it doesn't work

yancedywiler

New Member
Licensed User
Longtime User
Downsampling image due to lack of memory.

main$ResumableSub_Mostrar_Servicio_Lanzadoresume (java line: 11676)
java.lang.OutOfMemoryError: Failed to allocate a 86412 byte allocation with 56592 free bytes and 55KB until OOM
at dalvik.system.VMRuntime.newNonMovableArray(Native Method)
at android.graphics.Bitmap.nativeCreate(Native Method)
at android.graphics.Bitmap.nativeCreate(Native Method)

at android.graphics.Bitmap.createScaledBitmap(Bitmap.java:663)
at anywheresoftware.b4a.objects.drawable.CanvasWrapper$BitmapWrapper.Resize(CanvasWrapper.java:568)
at anywheresoftware.b4a.objects.drawable.CanvasWrapper$BitmapWrapper.InitializeResize(CanvasWrapper.java:549)
at anywheresoftware.b4a.keywords.Common.LoadBitmapResize(Common.java:1373)
at serdicor.yawi.co.main$ResumableSub_Mostrar_Servicio_Lanzado.resume(main.java:11676)
at serdicor.yawi.co.main._mostrar_servicio_lanzado(main.java:11621)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:213)
at anywheresoftware.b4a.keywords.Common$11.run(Common.java:1181)
at android.os.Handler.handleCallback(Handler.java:836)
at android.os.Handler.dispatchMessage(Handler.java:103)
at android.os.Looper.loop(Looper.java:203)
 

DonManfred

Expert
Licensed User
Longtime User
How many images are you loading?
What size/dimensions do they have?
 
Upvote 0
Top