hms-scan-demo icon indicating copy to clipboard operation
hms-scan-demo copied to clipboard

Android9以上的获取图片方法

Open mobilewhj opened this issue 2 years ago • 2 comments

ImageDecoder.decodeBitmap(ImageDecoder.createSource(contentResolver, it)) 这个方法获取的bitmap不能适用于ScanUtil.decodeWithBitmap方法

mobilewhj avatar Jul 13 '22 02:07 mobilewhj

image image image getBitmap()方法里面都是系统方法,再demo中使用是无法获取bitmap的。导致hmsScans对象的size一直为0.

mobilewhj avatar Jul 13 '22 09:07 mobilewhj

您好,感谢您提供本次报障的线索及定位协助。已验证通过ImageDecoder.decodeBitmap(ImageDecoder.createSource(contentResolver, it))获取的bitmap确实不适用于ScanUtil.decodeWithBitmap方法,具体原因还在排查,有进展我们会及时同步您。

Xuejiao-Shi avatar Jul 14 '22 09:07 Xuejiao-Shi