hms-scan-demo
hms-scan-demo copied to clipboard
Android9以上的获取图片方法
ImageDecoder.decodeBitmap(ImageDecoder.createSource(contentResolver, it)) 这个方法获取的bitmap不能适用于ScanUtil.decodeWithBitmap方法
getBitmap()方法里面都是系统方法,再demo中使用是无法获取bitmap的。导致hmsScans对象的size一直为0.
您好,感谢您提供本次报障的线索及定位协助。已验证通过ImageDecoder.decodeBitmap(ImageDecoder.createSource(contentResolver, it))获取的bitmap确实不适用于ScanUtil.decodeWithBitmap方法,具体原因还在排查,有进展我们会及时同步您。