Scanning QR codes (or bar codes) as input to a CommCare form

Hello folks --

I remember at the very first introduction to CommCare that I was given, you
guys used a CommCare app to scan a QR code, as an input to a form.

Now, a project is interested in a simple use where a field would simply
allow the user to scan a QR code and convert it into text to be placed into
the field.

I couldn't find anything about this on the confluence site (though I was
amazed to see material about the reverse... having a commcare form
generated a QR code on the screen to be scanned.)

If I wanted to simply scan a QR code (or hey, maybe a regular linear
barcode) to input a number into a CommCare form, how would I do it?

thx
eric

Hi Stefan,

You can add a Barcode field in your CommCare app. Take a look at the Advanced
menu in the application builder.

You'll have to install a barcode reader on your smartphones. This one works well :
https://play.google.com/store/apps/details?id=com.google.zxing.client.android[1]

Regards,

··· On Sunday 15 February 2015 22:07:42 Eric Stephan wrote: > Hello folks -- > > I remember at the very first introduction to CommCare that I was given, you > guys used a CommCare app to scan a QR code, as an input to a form. > > Now, a project is interested in a simple use where a field would simply > allow the user to scan a QR code and convert it into text to be placed into > the field. > > I couldn't find anything about this on the confluence site (though I was > amazed to see material about the reverse... having a commcare form > generated a QR code on the screen to be scanned.) > > If I wanted to simply scan a QR code (or hey, maybe a regular linear > barcode) to input a number into a CommCare form, how would I do it? > > thx > eric

--
Charles Flèche
mHealth Advisor
Télécoms Sans Frontières http://www.tsfi.org
Première Urgence - Aide Médicale Internationale http://www.pu-ami.org


[1] https://play.google.com/store/apps/details?id=com.google.zxing.client.android

Wrong URL, this is the one you want to check :
https://play.google.com/store/apps/details?id=com.google.zxing.cl
ient.android

The application is called ZXing.

··· -- Charles Flèche mHealth Advisor Télécoms Sans Frontières http://www.tsfi.org Première Urgence - Aide Médicale Internationale http://www.pu-ami.org

OK, that is both embarrassing and hilarious that it was sitting right there
as an option in the form builder.

Maybe next time I'll look and try before I run to the forum :slight_smile:

Then again, always nice to get the human contact...

Thanks for your help. Yep, the ZXing scanner is the one that's installed
on my phones.

Thanks!
Eric

Hi all,

I am wondering if CommCare barcode scanner is able to read QR code? I am
working on this agricultural data collection process, in which we are still
torn between implementing standard barcode (linear matrix) verses a data
matrix (eg. QR code) where you can have a scratch on the code and it still
reads. Your help is very much appreciated! Thank you!

Best,

Vivien

··· On Monday, February 16, 2015 at 2:20:47 PM UTC+8, Charles Flèche wrote: > > Wrong URL, this is the one you want to check : > https://play.google.com/store/apps/details?id=com.google.zxing.client.android > > > > The application is called ZXing. > > > > -- > > Charles Flèche > > mHealth Advisor > > Télécoms Sans Frontières http://www.tsfi.org > > Première Urgence - Aide Médicale Internationale http://www.pu-ami.org > > >

Hi there--

CommCare reads QR codes perfectly! I have never used the linear kind with
CommCare, only QR. So much nicer because, regardless of the scratch issue,
it can also be read from any angle ... you don't have to line it up along
one horizontal line.

I'd recommend making sure that the android app called Barcode Scanner (by a
company called Zxing) is installed, and you tell CommCare to use that app
when it goes to scan a code.

In fact, if you work with CommCare for any length of time, you'll see that
the app actually needs to use QR codes when it comes time to tell the phone
which of your apps you want to install onto a phone.

Eric

Hi Eric,

Thank you for your response, this is very helpful!

Another quick question: do we have to configure the setting in order for
the app to use the barcode scanner app, or is it automatic if we already
have the barcode app installed in the device? Thank you very much.

Vivien

··· On Tuesday, July 7, 2015 at 1:07:19 PM UTC+8, Eric Stephan wrote: > > > Hi there-- > > CommCare reads QR codes perfectly! I have never used the linear kind with > CommCare, only QR. So much nicer because, regardless of the scratch issue, > it can also be read from any angle ... you don't have to line it up along > one horizontal line. > > I'd recommend making sure that the android app called Barcode Scanner (by > a company called Zxing) is installed, and you tell CommCare to use that app > when it goes to scan a code. > > In fact, if you work with CommCare for any length of time, you'll see that > the app actually needs to use QR codes when it comes time to tell the phone > which of your apps you want to install onto a phone. > > Eric > >

If the scanner app is already present on the phone, then, the first time
that you go to ask the CommCare app to scan something, it brings up a
screen where you choose which scanner app you want to use in order to do
the scan. it will list all the scanner apps that it finds on your phone.
When you choose the one you want, you also click the button that says
"Always" ... and therefore it won't ask you the next time, it will
automatically choose that app.

The only small issue would happen if, in the past, on that phone, you had
already been using a barcode scanner app (which wasn't able to do QR codes)
on that phone with commcare before, and you had previous chosen that app as
"always" ... if you had done that in the past, and you wanted to change to
a different scanner app like the Zxing one, then you would have to go into
settings in order to "forget the default" that you had chosen for scanner
apps. Not certain where that is but it's a common step.

Eric

Noted. Thank you for the explanation. This is really helpful!

Best Regards,

Vivien Ayun
Senior Analyst
PHONE + 62 811 395 0065 SKYPE vivien.ayun

KOPERNIK CONNECTS SIMPLE TECHNOLOGY WITH LAST MILE COMMUNITIES TO REDUCE
POVERTY »KOPERNIK.NGO http://kopernik.info/

··· On Tue, Jul 7, 2015 at 3:14 PM, Eric Stephan wrote:

If the scanner app is already present on the phone, then, the first time
that you go to ask the CommCare app to scan something, it brings up a
screen where you choose which scanner app you want to use in order to do
the scan. it will list all the scanner apps that it finds on your phone.
When you choose the one you want, you also click the button that says
"Always" ... and therefore it won't ask you the next time, it will
automatically choose that app.

The only small issue would happen if, in the past, on that phone, you had
already been using a barcode scanner app (which wasn't able to do QR codes)
on that phone with commcare before, and you had previous chosen that app as
"always" ... if you had done that in the past, and you wanted to change to
a different scanner app like the Zxing one, then you would have to go into
settings in order to "forget the default" that you had chosen for scanner
apps. Not certain where that is but it's a common step.

Eric

--
You received this message because you are subscribed to a topic in the
Google Groups "commcare-users" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/commcare-users/yJt44vgNV2Q/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.