Hello everyone,
I implemented a splash screen when app is started, all works fine in my phone test (Samsung S8 Android 8), I published that app to Google Play but when the app is loaded in other phones with minor characteristics the app crash.
I used for this Library GifDecoder and Class GifViewer, I can checked logs in developer console and I got this:
The app crash in this Phone with Android 6 (LGE LG K8 (mm1v), 1536MB RAM, Android 6.0)
Can you help me with this ??
Thanks a lot
I implemented a splash screen when app is started, all works fine in my phone test (Samsung S8 Android 8), I published that app to Google Play but when the app is loaded in other phones with minor characteristics the app crash.
I used for this Library GifDecoder and Class GifViewer, I can checked logs in developer console and I got this:
B4X:
java.lang.OutOfMemoryError
en com.company.name.gifviewer._setgif
The app crash in this Phone with Android 6 (LGE LG K8 (mm1v), 1536MB RAM, Android 6.0)
B4X:
java.lang.OutOfMemoryError:
at dalvik.system.VMRuntime.newNonMovableArray (Native Method)
at android.graphics.Bitmap.nativeCreate (Native Method)
at android.graphics.Bitmap.createBitmap (Bitmap.java:904)
at android.graphics.Bitmap.createBitmap (Bitmap.java:928)
at anywheresoftware.b4a.agraham.gifdecoder.GifDecoder.SetPixels (GifDecoder.java:298)
at anywheresoftware.b4a.agraham.gifdecoder.GifDecoder.SetPixels (GifDecoder.java:396)
at anywheresoftware.b4a.agraham.gifdecoder.GifDecoder.ReadImage (GifDecoder.java:805)
at anywheresoftware.b4a.agraham.gifdecoder.GifDecoder.ReadContents (GifDecoder.java:672)
at anywheresoftware.b4a.agraham.gifdecoder.GifDecoder.Read (GifDecoder.java:559)
at anywheresoftware.b4a.agraham.gifdecoder.GifDecoder.Load (GifDecoder.java:211)
at com.company.name.gifviewer._setgif (gifviewer.java:150)
at com.company.name.main._activity_create (main.java:386)
at java.lang.reflect.Method.invoke (Native Method)
at anywheresoftware.b4a.BA.raiseEvent2 (BA.java:186)
at com.company.name.main.afterFirstLayout (main.java:107)
at com.company.name.main.access$000 (main.java:20)
at com.company.name.main$WaitForLayout.run (main.java:85)
at android.os.Handler.handleCallback (Handler.java:739)
at android.os.Handler.dispatchMessage (Handler.java:95)
at android.os.Looper.loop (Looper.java:148)
at android.app.ActivityThread.main (ActivityThread.java:5551)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:731)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:621)
Can you help me with this ??
Thanks a lot