Menu

Common usages

Dominik Dzienia

QR Code usages

QR Code itself is only a medium, way to represent a data - like a binary code, set of letters, music notation. It's only way of displaying data in machine-readable maner. QR Code docs itself does not specifies meaning of data eg. does not tell how to represent url, telephone number, Android Market link.

Because of that library takes as a parameter raw string, it's up to developer of code generator and scaner developers to agree over how speciffic data will be represented, and what action should be taken by scanner (navigate to web, add contact, initialize call).

Some ways are quite common, and - mayby not officialy speciffied - but defacto standards, supported by majority of software scaners. Here you finde some examples

Common Formats

Website urls

http://example.com
http://example.com?withparameter=a&andother=b
http://goo.gl/short
market://details?id=my.android.market.full.qualiffied.package.name

Telephones

tel:01234567

E-mail adresses

mailto:johndoe@example.com
mailto:johndoe@example.com?subject=promotion

Contact Card (VCard)

<code>
BEGIN:VCARD<br>
VERSION:2.1<br>
N:Gump;Forrest<br>
FN:Forrest Gump<br>
TITLE:Shrimp Man<br>
TEL;WORK;VOICE:(111) 555-1212<br>
END:VCARD
</code>

Additional informations

Important! Try to limit size of data - larger codes are hard to read.

More: http://en.wikipedia.org/wiki/VCard