D
D
Dmtm2021-10-31 09:30:05
Android
Dmtm, 2021-10-31 09:30:05

Is it possible to call a third party application to scan the barcode on intent?

just started to deal with the scanner,
there is a device with a built-in scanner, there are just phones, you need to scan barcodes,
installed a couple of scanner applications from the market, called

Intent callScannerIntent = new Intent("actions.intent.GET_BARCODE");
startActivityForResult(callScannerIntent, REQUEST_CODE_SCANNER);

- no Activity was found
PS: I know about deprecated startActivityForResult and checking for the existence of a suitable activity
PPS: actions.intent.GET_BARCODE it seems only for Google Assistant, then how?
PPPS: it seems that only a special intent from the manufacturer for a device with a scanner and an activity with a camera for phones?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg, 2021-10-31
@402d

If only with open source zxing it will turn out, since there is no single standard for scanning.
https://zxing.github.io/zxing/apidocs/com/google/z...
https://stackoverflow.com/questions/28049824/zxing...
In Android 12, the ability to query installed applications was limited.
Next April there will be changes in the rules of the play.
So the option to poll well-known (popular) applications, and then form specific intents, now, due to moderation problems, loses to the option to screw mobile vision into your application.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question