Android icon indicating copy to clipboard operation
Android copied to clipboard

Fix Android 16 incompatibility in zxing-android-embedded

Open TheLastProject opened this issue 2 months ago • 4 comments

From Android 16, Android will ignore resizability and orientation restrictions for large screen devices, such as foldables and tablets. This may lead to layout and usability issues for your users.

We detected the following resizability and orientation restrictions in your app:

<activity android:name="com.journeyapps.barcodescanner.CaptureActivity" android:screenOrientation="SENSOR_LANDSCAPE" />

To improve the user experience for your app, remove these restrictions and check that your app layouts work on various screen sizes and orientations by testing on Android 16 and below.

Seems to be https://github.com/journeyapps/zxing-android-embedded/issues/763

Seems there were no new releases in the last 4 years, no new commits in the last 3 years. We should try to migrate this quickly: https://github.com/journeyapps/zxing-android-embedded

TheLastProject avatar Oct 04 '25 09:10 TheLastProject

Hellooo! I made a quick app using CameraX and ML Kit, it could be a good replacement for ZXing.

Demo → BarcodeDemoApp Maven → ML Kit Barcode Scanning (supports new 16 KB/s rule) Guide → Official docs Examples → Material Showcase | Vision Quickstart (Outdated)

Would it be worth swiching from ZXing to this solution?

0spol avatar Oct 25 '25 16:10 0spol

MLKit is closed source and not allowed on F-Droid, so no, we can't switch to MLKit.

I also don't think we should replace zxing completely, it's fine, we only need to replace zxing-android-embedded. Which is a UI helper from journeyapps used in the scan activity and nowhere else.

TheLastProject avatar Oct 25 '25 16:10 TheLastProject

Ahhh okay, that makes sense now.

I don't know then any other solution with 16kb/s 😅

0spol avatar Oct 25 '25 17:10 0spol

16KB/s isn't the issue though. As far as I know, Catima doesn't suffer from that. At least, nobody has reported any such issue.

TheLastProject avatar Oct 25 '25 17:10 TheLastProject