Search code examples
iphoneandroidqr-code

Generate 2D bar code (e.g. QR Code, Data Matrix, PDF417) on iPhone and Android


I need a library to generate a 2D bar code on iPhone and Android (and preferably WM7 and possibly j2me too) - the idea is to transfer information to another device with a corresponding scanner (decoder). What are the good options?

ZXing is an option, in particular for the reading/decoding aspect, but I want to generate them on these devices.


Solution

  • zxing will work for Android. The Java encoder hasn't been ported to C++ (feel free to jump in and contribute ... shouldn't be that hard.) Until that happens, I've been using the psytec encoder (http://groups.google.com/group/zxing/msg/27e421daeb510d0f). The comments are in Japanese, but it's pretty straightforward.

    I don't have anything to add on WM7. Is that C#? There is a C# port of zxing but I don't know of anyone actively maintaining it and don't know if it includes an encoder.