generate a qr code from app inventor.

287 views
Skip to first unread message

Paul White

unread,
Nov 19, 2011, 3:53:53 AM11/19/11
to zxing
I am wanting to generate a qr code from appinventor, without it using
a web based generator.
I was thinking of using an activity starter. But from there I'm lost.
(what app will encode and how can I pass the text to it?) if anybody
can point me in the right direction, I would be most grateful.

Sean Owen

unread,
Nov 19, 2011, 4:19:54 AM11/19/11
to zx...@googlegroups.com
You don't need any code at all. Just pick out the Google Chart server URL that the generator creates for you and modify that URL, call it in your app to get a QR code image.

Paul White

unread,
Nov 19, 2011, 5:51:24 PM11/19/11
to zxing

My fault should have explained a bit better.
I want to generate the bar code from some text. not the link to the
app.

Sean Owen

unread,
Nov 20, 2011, 4:24:00 PM11/20/11
to zx...@googlegroups.com
Sure you can encode whatever text you want. Look at the chart server URL that I referred you to.

Paul White

unread,
Nov 27, 2011, 3:41:05 PM11/27/11
to zxing
I don't know what the chart server URL is and I want to be able to
generate the QRCode offline.
I'm Looking to start ZXing with the activity starter and use it's own
encoder.
My progress so far is

Action
com.google.zxing.client.android.ENCODE
ActivityClass
com.google.zxing.client.android.encode.EncodeActivity
ActivityPackage
com.google.zxing.client.android
DataType

DataUri
Hello.
ExtraKey

ExtraValue

I received a new error " Could not encode a barcode from the data
provided. "
Well at least It tried to encode it.

so just putting the text in the data uri box didn't work

So I have to find where to put it and I think I have to give the data
type.

Sean Owen

unread,
Nov 27, 2011, 5:28:29 PM11/27/11
to zx...@googlegroups.com
If you go to zxing.appspot.com/generator you will see what I mean.

OK, you've now specified you're interested in Intent-based integration. This is all correct except that I don't see that you're specifying the data to encode. It should be under key "ENCODE_DATA".

Paul White

unread,
Nov 27, 2011, 7:39:29 PM11/27/11
to zxing
Hi Sean
Thanks for taking the time to help.
I don't know how well you know App Inventor. But the activity starter
has 8 boxes.

Action ,ActivityClass, ActivityPackage, DataType, DataUri, ExtraKey,
ExtraValue, ResultName.

In My example I had entered "Hello" for the DataURI

Do I enter the key "ENCODE_DATA" in the ExtraKey box and if so where
do I put the text "hello"
or
Should Action be
Action
com.google.zxing.client.android.ENCODE_DATA and again where do I but
the text.

Sean Owen

unread,
Nov 28, 2011, 5:22:10 AM11/28/11
to zx...@googlegroups.com
I don't know app inventor. I'm talking about the Intent extras you need to set -- however you do that. I think these are several "ExtraKey" "ExtraValue" pairs, not URIs.
Reply all
Reply to author
Forward
0 new messages