Luke Tang
Luke Tang
set `android.enableJetifier=true` in the `gradle.properties` 后能编译, 但根据上面log提示,遗留的support libraries很快就不能用了
同一个手机, 拉最新的代码编译,同样现象。下面是最新的log. [AUSBC_v3.3.0_2022-09-28.log](https://github.com/jiangdongguo/AndroidUSBCamera/files/9661417/AUSBC_v3.3.0_2022-09-28.log) 看log是有提示预览成功,但实际上一直黑屏没有画面
@annaijinwind 不是同一个问题。 #434是权限问题。 这个是有权限,并且log中显示预览成功了,但实际没画面
不能预览。 但有时候进多路的时候会弹窗提示,-99, 但不是每次都提示。附件是log [AUSBC_v3.3.0_2022-09-30.log](https://github.com/jiangdongguo/AndroidUSBCamera/files/9680171/AUSBC_v3.3.0_2022-09-30.log)
我得找找看。 目前鸿蒙2.0系统的几款机器都正常使用
荣耀畅玩30 也是同样的现象
问题在于USBMonitor的这行代码: ~~~ kotlin if (Build.VERSION.SDK_INT >= 31) { mPermissionIntent = PendingIntent.getBroadcast(context, 0, new Intent(ACTION_USB_PERMISSION), PendingIntent.FLAG_IMMUTABLE); } else { mPermissionIntent = PendingIntent.getBroadcast(context, 0, new Intent(ACTION_USB_PERMISSION), 0); } ~~~ FLAG_IMMUTABLE是指不让系统其他地方修改这个PendingIntent, 使用这个flag,会造成申请权限后,登记的receiver获取的intent中,获取不到携带的数据。 ~~~...
I appreciate your quick response. The ditherImage function uses the floydSteinberg algorithm by default. I tried to use this image to test the new code:  But the resulting picture...