this post was submitted on 28 Sep 2022
1 points (100.0% liked)

Android

9333 readers
1 users here now

A place to discuss anything related to Android or Android adjacent.


INFO:


Check Out Our Partner Communities:

!android@lemmy.world

founded 4 years ago
MODERATORS
 

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
you are viewing a single comment's thread
view the rest of the comments
[–] mp3@lemmy.ml 1 points 2 years ago (1 children)

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.

[–] Yujiri@lemmy.ml 1 points 2 years ago (1 children)
[–] Yujiri@lemmy.ml 1 points 2 years ago

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 :)