Android 1.5 device

kkolle

Member
Licensed User
Longtime User
Hi everybody!

I hope someone can help me!

I have to develop on an Android 1.5 device.

Erel says that B4A supports Android 1.6 and above.

But it seems to run on this device.

But I have problems including Bitmaps respectively BitmapDrawables:

B4X:
Dim bdActivityBackground As BitmapDrawable
bdActivityBackground.Initialize(LoadBitmap(File.DirAssets, "toptitlebar3.png"))

Throws this error:
B4X:
08-03 16:39:08.158: ERROR/AndroidRuntime(4505): Uncaught handler: thread main exiting due to uncaught exception
08-03 16:39:08.168: ERROR/AndroidRuntime(4505): java.lang.VerifyError: anywheresoftware.b4a.objects.drawable.BitmapDrawable

Thanks for your help!
 

kkolle

Member
Licensed User
Longtime User
Compiling is not the problem! I changed the minSdkVersion to 3 by my own :)

Without any bitmaps the app works fine!
I always get the error when I try to load a bitmap!

I used the the SDK level 11. Could that be a problem?
 
Upvote 0

kkolle

Member
Licensed User
Longtime User
Hi Erel!

I hope this could help:

B4X:
08-04 09:05:59.378: ERROR/dalvikvm(1400): Could not find method android.graphics.drawable.BitmapDrawable.<init>, referenced from method anywheresoftware.b4a.objects.drawable.BitmapDrawable.Initialize
08-04 09:05:59.378: WARN/dalvikvm(1400): VFY: unable to resolve direct method 211: Landroid/graphics/drawable/BitmapDrawable;.<init> (Landroid/content/res/Resources;Landroid/graphics/Bitmap;)V
08-04 09:05:59.378: WARN/dalvikvm(1400): VFY:  rejecting opcode 0x70 at 0x0008
08-04 09:05:59.378: WARN/dalvikvm(1400): VFY:  rejected Lanywheresoftware/b4a/objects/drawable/BitmapDrawable;.Initialize (Landroid/graphics/Bitmap;)V
08-04 09:05:59.378: WARN/dalvikvm(1400): Verifier rejected class Lanywheresoftware/b4a/objects/drawable/BitmapDrawable;
08-04 09:05:59.378: DEBUG/AndroidRuntime(1400): Shutting down VM
08-04 09:05:59.378: WARN/dalvikvm(1400): threadid=3: thread exiting with uncaught exception (group=0x40010e70)
08-04 09:05:59.378: ERROR/AndroidRuntime(1400): Uncaught handler: thread main exiting due to uncaught exception
08-04 09:05:59.398: ERROR/AndroidRuntime(1400): java.lang.VerifyError: anywheresoftware.b4a.objects.drawable.BitmapDrawable
08-04 09:05:59.398: ERROR/AndroidRuntime(1400):     at com.mO.mOFleet.main._activity_create(main.java:232)
08-04 09:05:59.398: ERROR/AndroidRuntime(1400):     at java.lang.reflect.Method.invokeNative(Native Method)
08-04 09:05:59.398: ERROR/AndroidRuntime(1400):     at java.lang.reflect.Method.invoke(Method.java:521)
08-04 09:05:59.398: ERROR/AndroidRuntime(1400):     at anywheresoftware.b4a.BA.raiseEvent2(BA.java:105)
08-04 09:05:59.398: ERROR/AndroidRuntime(1400):     at com.mO.mOFleet.main.afterFirstLayout(main.java:84)
08-04 09:05:59.398: ERROR/AndroidRuntime(1400):     at com.mO.mOFleet.main.access$100(main.java:16)
08-04 09:05:59.398: ERROR/AndroidRuntime(1400):     at com.mO.mOFleet.main$WaitForLayout.run(main.java:72)
08-04 09:05:59.398: ERROR/AndroidRuntime(1400):     at android.os.Handler.handleCallback(Handler.java:587)
08-04 09:05:59.398: ERROR/AndroidRuntime(1400):     at android.os.Handler.dispatchMessage(Handler.java:92)
08-04 09:05:59.398: ERROR/AndroidRuntime(1400):     at android.os.Looper.loop(Looper.java:123)
08-04 09:05:59.398: ERROR/AndroidRuntime(1400):     at android.app.ActivityThread.main(ActivityThread.java:3948)
08-04 09:05:59.398: ERROR/AndroidRuntime(1400):     at java.lang.reflect.Method.invokeNative(Native Method)
08-04 09:05:59.398: ERROR/AndroidRuntime(1400):     at java.lang.reflect.Method.invoke(Method.java:521)
08-04 09:05:59.398: ERROR/AndroidRuntime(1400):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
08-04 09:05:59.398: ERROR/AndroidRuntime(1400):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:625)
08-04 09:05:59.398: ERROR/AndroidRuntime(1400):     at dalvik.system.NativeStart.main(Native Method)

THANKS!!
 
Upvote 0
Top