Strange Problem when loading bitmaps on Galaxy Tab P1000

cmweb

Active Member
Licensed User
Longtime User
Hi everybody,

I built an app that runs without any problems on lots of different devices.

But, there's one user that reports errors when running the app on a Galaxy Tab P1000.

This is the error message:

"An error has occurred in sub:main_listfill (java line: 1112) java.lang.RuntimeException: Error loading bitmap. Continue?"

followed by:

"An error has occurred in sub:httputils_getbitmap (java line: 58) java.lang.RuntimeException: Error loading bitmap. Continue?"

Attached my app project in a zip file.

Why does this error only appears on a Galaxy Tab. What is the difference between a Galaxy Tab and any other Android device...!?

Any ideas?

Best regards,

Carsten
 

Attachments

  • copysmiley.zip
    17.9 KB · Views: 199

NJDude

Expert
Licensed User
Longtime User
Are you sure you have all the files included in your project?, for example, the one on the line above is NOT in your Assets.

B4X:
IconList = File.ReadList(File.DirAssets,"smileys.txt")
 
Upvote 0

cmweb

Active Member
Licensed User
Longtime User
Yes, you're right. And I'm sorry. I used File > Export As Zip function and I didn't know that this function doesn't put all /files/ content in the zip file.

Attached the project - now with that missing file.

Best regards,

Carsten
 

Attachments

  • copysmiley.zip
    21.1 KB · Views: 217
Upvote 0

cmweb

Active Member
Licensed User
Longtime User
Thanks for trying out...

I'm wondering where the problem on that user's Galaxy Tab comes from...

Best regards,

Carsten
 
Upvote 0

cmweb

Active Member
Licensed User
Longtime User
The user with that error message sent me a logcat:

V/WindowManager(28168): Delivering toWindow{488dc5a0 com.sec.android.app.twlauncher/com.sec.android.app.twlauncher.Launcher paused=false}
D/dalvikvm(28267): GC_EXTERNAL_ALLOC freed 1398 objects / 62360 bytes in 46ms
V/WindowManager(28168): Delivering toWindow{488dc5a0 com.sec.android.app.twlauncher/com.sec.android.app.twlauncher.Launcher paused=false}
V/Launcher(28267): startActivitySafely copy.your.smiley
I/ActivityManager(28168): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=copy.your.smiley/.main }
W/Launcher(28267): ================6
I/Launcher(28267): onPause()
I/Launcher(28267): onWindowFocusChanged(false)
I/B4A ( 2951): ** Activity (main) Create, isFirst = false **
V/WebSelectionControls( 2951): CharControllerWidth: 48
V/WebSelectionControls( 2951): CharControllerHeight: 66
V/WebSelectionControls( 2951): ParaControllerWidth: 36
V/WebSelectionControls( 2951): ParaControllerHeight : 36
I/B4A ( 2951): Deutsch (Schweiz)
I/global ( 2951): Default buffer size used in BufferedOutputStream constructor. It would be better to be explicit if an 8k buffer is required.
D/dalvikvm( 2951): GC_FOR_MALLOC freed 21048 objects / 1665528 bytes in 49ms
D/skia ( 2951): --- decoder->decode returned false
E/B4A ( 2951): main_listfill (java line: 1112)
E/B4A ( 2951):
E/B4A ( 2951): java.lang.RuntimeException: Error loading bitmap.
E/B4A ( 2951): at anywheresoftware.b4a.objects.drawable.CanvasWrapper$BitmapWrapper.Initialize2(CanvasWrapper.java:495)
E/B4A ( 2951): at anywheresoftware.b4a.objects.drawable.CanvasWrapper$BitmapWrapper.Initialize(CanvasWrapper.java:486)
E/B4A ( 2951): at anywheresoftware.b4a.keywords.Common.LoadBitmap(Common.java:911)
E/B4A ( 2951): at copy.your.smiley.main._listfill(main.java:1112)
E/B4A ( 2951): at copy.your.smiley.main._activity_create(main.java:623)
E/B4A ( 2951): at java.lang.reflect.Method.invokeNative(Native Method)
E/B4A ( 2951): at java.lang.reflect.Method.invoke(Method.java:521)
E/B4A ( 2951): at anywheresoftware.b4a.BA.raiseEvent2(BA.java:105)
E/B4A ( 2951): at copy.your.smiley.main.afterFirstLayout(main.java:84)
E/B4A ( 2951): at copy.your.smiley.main.access$100(main.java:16)
E/B4A ( 2951): at copy.your.smiley.main$WaitForLayout.run(main.java:72)
E/B4A ( 2951): at android.os.Handler.handleCallback(Handler.java:587)
E/B4A ( 2951): at android.os.Handler.dispatchMessage(Handler.java:92)
E/B4A ( 2951): at android.os.Looper.loop(Looper.java:123)
E/B4A ( 2951): at android.app.ActivityThread.main(ActivityThread.java:4627)
E/B4A ( 2951): at java.lang.reflect.Method.invokeNative(Native Method)
E/B4A ( 2951): at java.lang.reflect.Method.invoke(Method.java:521)
E/B4A ( 2951): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)
E/B4A ( 2951): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
E/B4A ( 2951): at dalvik.system.NativeStart.main(Native Method)
E/B4A ( 2951): java.lang.RuntimeException: Error loading bitmap.
I/AxT9IME (28257): AxT9IME:nStartInput(false)
I/AxT9IME (28257): AxT9IME::isUsingHWKeypad()
D/AxT9IME (28257): AxT9IME::isUsingHWKeypad() ret : false
V/WindowManager(28168): Delivering toWindow{48688e68 copy.your.smiley/copy.your.smiley.main paused=false}
V/WindowManager(28168): Delivering toWindow{48688e68 copy.your.smiley/copy.your.smiley.main paused=false}
I/B4A ( 2951): ** Activity (main) Resume **
W/InputManagerService(28168): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@485aa698
E/ShutdownThread(28168): IsShutDownStarted()
I/KeyInputQueue(28168): Input event
D/KeyInputQueue(28168): screenCaptureKeyFlag setting 1
V/WindowManager(28168): Dsptch to Window{48652bd0 copy.your.smiley/copy.your.smiley.main paused=false}
I/AxT9IME (28257): AxT9IME:nKeyDown(4)

---

Could that help to find out what's wrong there?

Best regards,

Carsten

Gesendet von meinem GT-N7000 mit Tapatalk
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…