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:
-
No attacking others based on their phone preferences. Criticizing OEMs/devices is allowed. Attacking users because a different brand/device works for them isn't.
-
Obvious spam will be removed.
-
Anything directly or indirectly related to Android is allowed.
Check Out Our Partner Communities:
founded 4 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I can't figure out how to import zxing. Their docs refer to files with
package com.google.zxing.integration.android
, but I get errors saying that isn't found.Also, this article suggests that that library requires a specific app to be installed from google play. Surely there's a way to do this without relying on that? There must be something built-in.
Maybe you can look at how Binary Eye integrates the library and base your work upon it?
Binary Eye is a scanning app. I'm not trying to make a scanning app, I'm trying to call out to one. What I'd hoped is that Android has some way to call out to "whatever the user has set as default barcode scanning app", but maybe there just isn't such an interface.
I would look at just embedding the scanning functionality into my app itself, but Binary Eye is massive! And there are dependencies on other third-party camera libraries in there, so that's not even all of it.
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 :)