Issue 1488 in zxing: BitmapFactory.Options.inMutable (Added in API level 11) causing exception

41 views
Skip to first unread message

zx...@googlecode.com

unread,
Jan 22, 2013, 3:06:39 AM1/22/13
to zx...@googlegroups.com
Status: New
Owner: ----

New issue 1488 by jjk...@gmail.com: BitmapFactory.Options.inMutable (Added
in API level 11) causing exception
http://code.google.com/p/zxing/issues/detail?id=1488

the inMutable property was only added in API level 11, if we run the
program in lower target, will cause error.

1. Using a machine with API level < 11
2. Run the demo program
3. scan some barcode.

Expect scanned result, saw crash instead.

using svn version:2564

Exception information
01-22 15:38:50.828: E/AndroidRuntime(18909): java.lang.NoSuchFieldError:
android.graphics.BitmapFactory$Options.inMutable
01-22 15:38:50.828: E/AndroidRuntime(18909): at
com.google.zxing.client.android.CaptureActivityHandler.handleMessage(CaptureActivityHandler.java:92)
01-22 15:38:50.828: E/AndroidRuntime(18909): at
android.os.Handler.dispatchMessage(Handler.java)
01-22 15:38:50.828: E/AndroidRuntime(18909): at
android.os.Looper.loop(Looper.java)
01-22 15:38:50.828: E/AndroidRuntime(18909): at
android.app.ActivityThread.main(ActivityThread.java)
01-22 15:38:50.828: E/AndroidRuntime(18909): at
java.lang.reflect.Method.invokeNative(Native Method)
01-22 15:38:50.828: E/AndroidRuntime(18909): at
java.lang.reflect.Method.invoke(Method.java:507)
01-22 15:38:50.828: E/AndroidRuntime(18909): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java)
01-22 15:38:50.828: E/AndroidRuntime(18909): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java)
01-22 15:38:50.828: E/AndroidRuntime(18909): at
dalvik.system.NativeStart.main(Native Method)


zx...@googlecode.com

unread,
Jan 22, 2013, 3:29:28 AM1/22/13
to zx...@googlegroups.com
Updates:
Status: Accepted
Owner: srowen
Labels: Type-Defect Priority-High

Comment #1 on issue 1488 by srowen: BitmapFactory.Options.inMutable (Added
in API level 11) causing exception
http://code.google.com/p/zxing/issues/detail?id=1488

Darn, you're right. That's from a chance a few days ago. I think we will
have to just copy the bitmap rather than read a mutable bitmap then.

zx...@googlecode.com

unread,
Jan 22, 2013, 3:48:54 AM1/22/13
to zx...@googlegroups.com
Updates:
Status: Fixed

Comment #2 on issue 1488 by srowen: BitmapFactory.Options.inMutable (Added
in API level 11) causing exception
http://code.google.com/p/zxing/issues/detail?id=1488

(No comment was entered for this change.)

Reply all
Reply to author
Forward
0 new messages