This project has moved. For the latest updates, please go here.

Encode QR Code as TEXT and not as URI

Jan 15, 2015 at 8:32 AM
Edited Jan 15, 2015 at 8:37 AM
How can I change the QR Code Type?

When I read my barcodes it says Parsed Result Type: URI and I would like to change this to text.
Raw text: ORDERNUMBER:9812
Raw bytes: 20 84 53 4a f3 5a ae 1f d9 d6 67 41 78
Barcode format: QR_CODE
Parsed Result Type: URI
Parsed Result: http://ORDERNUMBER:9812
I googled on this matter an found out that ParsedResultType.TEXT exists. How can I apply this to my QR Code Writer?

Thank you!
Jan 17, 2015 at 7:11 AM
There is no QR Code "Type" at all. Everything you can encode is text.
But some texts are formatted like a URI, other ones are formatted in vEvent format and so on.
The ResultParser class tries to figure out which kind of text it could be.
But mainly it is only text. If you use the raw text you will be fine.
You can't apply any QR Code Type to the writer because the writer takes the text as is.
If it is formatted like an URI, it's fine. But it doesn't matter.