I’m making an app for a new federated messaging protocol, Sufec, which needs to be able to link a device by scanning a QR code, for multi-device support. I can’t for the life of me find a way to do this anywhere on the internet. I want a solution that:
- Doesn’t depend on the image already being scanned and saved (ie. it should open a camera app, not a files app)
- QR code should be detected by the camera app, so the user doesn’t have to snap a picture, then return to the messaging app and see an error that the QR code couldn’t be read
- Doesn’t depend on having any specific app installed
- Is not deprecated
It’s is a scanning app, but its core relies on the zxing library. Sadly there isn’t a standardized way of calling a default barcode scanning app on Android, so your only option is to build your own inside the app, or rely in the zxing library.
Thanks!
Hey @mp3, thought I should come back and give you an update! I finally managed to do as you said with the zxing library and get it to work! In just a minute, I’ll be able to commit this feature :)