-3

Hello, I need to generate 1D barcode in my Android application, is there a free library that allows me to generate the 1D ?

Cengiz Can
  • 1,363
  • 1
  • 16
  • 29
user1297967
  • 1
  • 2
  • 3

1 Answers1

4

Try ZXing, it's opensource.

You can also try iText as suggested by this answer.

Here you can find a very detailed example of using iText to generate barcodes

Community
  • 1
  • 1
Cengiz Can
  • 1,363
  • 1
  • 16
  • 29
  • thank you for your help. I managed to generate a QRcode via ZXing, but not a 1D – user1297967 Mar 28 '12 at 11:41
  • 1
    I'm pretty sure ZXing core allows you to generate 1D, try changing your `encode()` method call to one of the following [com.google.zxing.BarcodeFormat](http://code.google.com/p/zxing/source/browse/trunk/core/src/com/google/zxing/BarcodeFormat.java?r=981)'s. For example `com.google.zxing.BarcodeFormat.UPC_E` is a 1D barcode. – Cengiz Can Mar 28 '12 at 11:46
  • ZXing can read 1D, it can also create 1D? – user1297967 Mar 28 '12 at 13:20
  • com.google.zxing.BarcodeFormat's contains just the code to read as possible, not create. – user1297967 Mar 28 '12 at 13:26
  • @user1297967 I have added `iText` example application. HTH – Cengiz Can Mar 28 '12 at 13:36