Barcode on swift 4

I figured it out but Apple didn’t make it so obvious. The callback function from the delegate AVCaptureMetadataOutputObjectsDelegate has been renamed and the parameter names are different! So, replace func captureOutput(_ captureOutput: AVCaptureOutput!, didOutputMetadataObjects metadataObjects: [Any]!, from connection: AVCaptureConnection!) to func metadataOutput(_ output: AVCaptureMetadataOutput, didOutput metadataObjects: [AVMetadataObject], from connection: AVCaptureConnection) My view controller is now … Read more

Generate barcode image in Android application

You can use zxing library to generate barcode easily. first, locate core.jar under libs folder. libs/core.jar You can download ZXing-2.1.zip from here. http://repo1.maven.org/maven2/com/google/zxing/ (source) After unzipping the file, find the jar file. \ZXing-2.1\zxing-2.1\core\core.jar And then write your own code like below. import java.util.EnumMap; import java.util.Map; import android.app.Activity; import android.graphics.Bitmap; import android.os.Bundle; import android.view.Gravity; import android.widget.ImageView; … Read more

BarCode Image Generator in Java

iText is a great Java PDF library. They also have an API for creating barcodes. You don’t need to be creating a PDF to use it. This page has the details on creating barcodes. Here is an example from that site: BarcodeEAN codeEAN = new BarcodeEAN(); codeEAN.setCodeType(codeEAN.EAN13); codeEAN.setCode(“9780201615883”); Image imageEAN = codeEAN.createImageWithBarcode(cb, null, null); The … Read more

Integrating the ZXing library directly into my Android application

UPDATE! – SOLVED + GUIDE I’ve managed to figure it out 🙂 And down below you can read step-by-step guide so it hopefully can help others with the same problem as I had 😉 Install Apache Ant – (See this YouTube video for config help) Download the ZXing source from ZXing homepage and extract it … Read more