Handle QR code scan intents
See original GitHub issueAt first, thanks for this great app! It looks a lot nicer than the original Barcode Scanner app from zxing while being at least as powerful and fast!
One downside I noticed while using BinaryEye is that most of the apps calling a QR Code reader application use the native Barcode Scanner intent (com.google.zxing.client.android.SCAN
), which is not handled by BinaryEye. I would find it very useful to be able to select BinaryEye as a target application for scanning QR Codes. Sadly, there does not seem to exist an package-independant Intent for querying any installed QR code scanner apps.
A quite simple workaround would be to add a new intent filter with the same name as Barcode scanner and handle it inside CaptureActivity.java
.
What do you think of such a functionality? I would be willing to look into it, but I wanted to discuss it here first.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:7 (6 by maintainers)
and (from #10):
This happens because most likely Firefox and Syncthing (and most other apps) are using the
IntentIntegrator
from the ZXing library. Inside this Java file, all apps “known to respond properly to the intent” are hardcoded.So, in my opinion the way to go is:
SCAN_FORMATS
andSCAN_CAMERA_ID
)IntentIntegrator.java
class (most likely copies of ZXing’s one)Edit:
AFAIK, it did not open for the QR code scan intend of Firefox for Android: (mostly tested with Firefox for Android) See https://support.mozilla.org/kb/scan-qr-codes-firefox-android
IMHO, you should really implement this, as the original ZXing app is not so nice and buggy.