What is the actual ASCII value of the FNC1 character in GS1 barcodes?

The special function characters such as FNC1 through FNC4 belong to the class of “non-data characters” that can be encoded within various barcode symbologies but with do not have any direct ASCII representation in the decoded data stream. Each symbology that supports such characters has a different scheme for encoding them in its internal representation … 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

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

How to ask runtime permissions for Camera in Android , Runtime storage permissions

Below I have written a code for granting a runtime permissions for Camera, There is an Array of String in which you can give multiple requests granting as which is needed at runtime. public class MainActivity extends AppCompatActivity { private static final int PERMISSION_REQUEST_CODE = 200; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); if … Read more

NSCameraUsageDescription in iOS 10.0 runtime crash?

After iOS 10 you have to define and provide a usage description of all the system’s privacy-sensitive data accessed by your app in Info.plist as below: Calendar Key : Privacy – Calendars Usage Description Value : $(PRODUCT_NAME) calendar events Reminder : Key : Privacy – Reminders Usage Description Value : $(PRODUCT_NAME) reminder use Contact : … Read more