tm1701
tm1701

Reputation: 7591

Android app starts scanning QR code via QR Droid v7.0 -- gets null result

My app starts QR Droid to scan URL texts. Works in my case very well, so I would like to stay with QRdroid.

Since having another Android 7 mobile device, the very same code gives no text result. I start QR Droid via:

Intent qrDroid = new Intent("la.droid.qr.scan");
// optionally qrDroid.putExtra("la.droid.qr.complete", true);
try {
   startActivityForResult(qrDroid, 0);

In the debugger I see that the value of qrDroid is:

Intent { act=la.droid.qr.scan launchParam=MultiScreenLaunchParams{ mDisplayId=0 mFlags=0}}

The result is received in this method (either in the activity or the fragment):

@Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {

The values are:

Intent { act=la.droid.qr.scan flg=0x80000 launchParam=MultiScreenLaunchParams{ mDisplayId=0 mFlags=0}(has extras)} mExtras = { Bundle@7198} "Bundle[mParcelledData.dataSize=340]

How can I get the text result (of the scanned URL) in my app?

Upvotes: 1

Views: 115

Answers (1)

burgyna
burgyna

Reputation: 149

I think this might be issue with QR droid 7.0. It works with https://play.google.com/store/apps/details?id=la.droid.qr.priva You have just use (l̶a̶̶̶.̶̶̶d̶̶̶r̶̶̶o̶̶̶i̶̶̶d̶̶̶.̶̶̶q̶̶̶r̶̶̶.̶̶̶p̶̶̶r̶̶̶i̶̶̶v̶̶̶a̶̶̶.̶̶̶D̶̶̶e̶̶̶C̶̶̶a̶̶̶m̶̶̶e̶̶̶r̶̶̶a̶̶̶ ) "la.droid.qr.scan" as launch intent.

Upvotes: 1

Related Questions