Android GS1-128/EAN-128 Generator generate, create barcode EAN-128 images in Android application

GS1-128/EAN-128 Generator for Android to Generate GS1 128 Barcodes in Android Application using Android Barcode Generator Library

  • Easy to use Android EAN 128 generation api
  • Developed from Java EAN 128 barcode generator
  • Compatible with Android 1.5 SDK and later versions
  • Easy to integrate the EAN 128 SDK into Android apps
  • Generate high quality EAN 128 barcode with the Android EAN 128 SDK
  • GIF, JPEG, and PNG are supported by the Android EAN 128 Barcode Generator
  • Reliable and mature Android barcode library for EAN 128 generation
  • Compatible with the latest EAN 128 barcode symbology standard
  • Android EAN 128 source code is available for the purchase of the Source Code license


Android EAN 128 Barcode Generator Introduction

Android EAN 128 barcode API is an EAN 128 generator for Android apps, designed for creating EAN 128 barcode on Android platform.

  • Android EAN 128 SDK is entirely developed for Android platform
  • Android EAN 128 generator is completely built in Android 1.5 SDK
  • Developer Licenses for this Android EAN 128 library are royalty-free and perpetual

excel barcode schriftart code 128 download, excel qr code free, barcode recognition, datamatrix c#, how to print barcode in crystal report using vb6, c# barcode scanner textbox

GS1-128 is an application standard of the GS1 implementation using the Code 128 barcode specification. The former correct name was UCC/EAN-128. Other no longer used names have included UCC-128 and EAN-128. GS1-128 uses a series of Application Identifiers to include additional data such as best before dates, batch numbers, quantities, weights and many other attributes needed by the user.

OnBarcode provides several GS1 128 Generator library, SDk, component and software, including EAN 128 C#, GS1 128 .NET, GS1 128 Java, GS1 128 VB.NET, GS1 128 ASP.NET, GS1 128 Generator.


GS1 128 (UCC/EAN-128) Valid Data Scope

Android Barcode EAN 128 supports:

  • all 128 characters of ASCII
  • values 128-255 in accordance with ISO 8859-1. There are referred to as extended ASCII.


How to generate GS1 128 (UCC/EAN-128) barcodes in your Android application?

Generating barcode GS1 128 / EAN 128 in Java Class example

	EAN128 barcode = new EAN128();
	   GS1-128 / EAN-128 Valid data char set:
	        all 128 ASCII characters (Char from 0 to 127)
	   to encode Application Identifier (AI), add "()" around the AI code, and followed by the AI data
	   such as: (00)350123451234567894(21)01234567
	//  Set the processTilde property to true, if you want use the tilde character "~"
	//  to specify special characters in the input data. Default is false.
	//  1) All 128 ISO/IEC 646 characters, i.e. characters 0 to 127 inclusive, in accordance with ISO/IEC 646.
	//       NOTE This version consists of the G0 set of ISO/IEC 646 and the C0 set of ISO/IEC 6429 with values 28 - 31
	//       modified to FS, GS, RS and US respectively.
	//  2) Characters with byte values 128 to 255 may also be encoded.
	//  3) 4 non-data function characters.
	//  4) 4 code set selection characters.
	//  5) 3 Start characters.
	//  6) 1 Stop character.
	// Unit of Measure, pixel, cm, or inch
	// barcode bar module width (X) in pixel
	// barcode bar module height (Y) in pixel
	// barcode image margins
	// barcode image resolution in dpi
	// disply barcode encoding data below the barcode
	// barcode encoding data font style
	barcode.setTextFont(new AndroidFont("Arial", Typeface.NORMAL, 12));
	// space between barcode and barcode encoding data
	// barcode bar color and background color in Android device
	specify your barcode drawing area
	    RectF bounds = new RectF(30, 30, 0, 0);
	barcode.drawBarcode(canvas, bounds);

Android GS1 128 (UCC/EAN-128) Barcode Properties

Barcode Java Class:

Category Properties Value Comments
Basic Property: data Type: String
Default: ""
Barcode value to encode

GS1-128/EAN-128 Valid Data Char Set:
  • all 128 ASCII characters (Char from 0 to 127)

Property: addCheckSum Type: boolean
Default: false
addCheckSum property is not applied here.
GS1 128
EAN 128
Property: processTilde Type: boolean
Default: false
Set the processTilde property to true, if you want use the tilde character "~" to specify special characters in the input data.

  • 1-byte character: ~0dd/~1dd/~2dd (character value from 000 ~ 255); ASCII character '~' is presented by ~126
    Strings from "~256" to "~299" are unused
  • 2-byte character (Unicode): ~6ddddd (character value from 00000 ~ 65535)
    Strings from "~665536" to "~699999" are unused
  • for GS1 AI Code:
    ~ai2: AI code with 2 digits
    ~ai3: AI code with 3 digits
    ~ai4: AI code with 4 digits
    ~ai5: AI code with 5 digits
    ~ai6: AI code with 6 digits
    ~ai7: AI code with 7 digits
Property: autoResize Type: boolean
Default: false
Auto resize the generated barcode image
Property: barAlignment Type: int
Default: 1 (center)
Barcode horizontal alignment inside the image. 0: left, 1: center, 2: right.
Property: uom Type: int
Default: 0 (pixel)
Unit of meature for all size related settings in the library.
Valid values: 0: pixel; 1: inch; 2: cm.
Property: X Type: float
Default: 1
Width of barcode bar module (narrow bar), default is 1 pixel
Property: Y Type: float
Default: 30
Height of barcode bar module, default is 30 pixel
Property: barcodeWidth Type: float
Default: 0
Barcode image width.

If barcodeWidth setting is smaller than the barcode required minimum width, the library will automatically reset to barcode minimum width.
Property: barcodeHeight Type: float
Default: 0
Barcode image height.

If barcodeHeight setting is smaller than the barcode required minimum height, the library will automatically reset to barcode minimum height.
Property: leftMargin Type: float
Default: 0
Barcode image left margin size.
Property: rightMargin Type: float
Default: 0
Barcode image right margin size.
Property: topMargin Type: float
Default: 0
Barcode image top margin size.
Property: bottomMargin Type: float
Default: 0
Barcode image bottom margin size.
Property: resolution Type: int
Default: 72
Barcode image resolution in DPI (Dots per inch).
Property: rotate Type: int
Default: 0 (IBarcode.ROTATE_0)
Valid values:

  • 0 (IBarcode.ROTATE_0)
  • 1 (IBarcode.ROTATE_90)
  • 2 (IBarcode.ROTATE_180)
  • 3 (IBarcode.ROTATE_270)
Property: backColor Type: AndroidColor
Default: AndroidColor.white
Barcode image background color
Property: foreColor Type: AndroidColor
Barcode image foreground color
Property: showText Type: boolean
Default: true
If true, display barcode data text under the barcode, otherwise do not display.
Property: textFont Type: AndroidFont
new AndroidFont("Arial", Typeface.NORMAL, 11)
Barcode text font style.
Property: textMargin Type: float
Default: 6
Space between barcode and barcode data text, default is 6 pixel
Property: textColor Type: AndroidColor
Barcode text color

OnBarcode is a market-leading provider of barcode imaging generator, reader controls and components for ASP.NET, Windows Forms, WPF, as well Java, Android, iOS (iPhone, iPad) across all major enterprise development platforms. We provides comprehensive tutorials and how-tos for various linear, 2d barcode information, such as C# in ASP.NET, C# .NET, C# Barcode Encoding, C# Barcode Image, VB.NET in ASP.NET, VB.NET Winforms, VB.NET Barcode Encoding. OnBarcode barcode products are supported by RasterEdge ASP.NET Document Viewer, which supports ASP.NET PDF Viewer, ASP.NET MVC Document Viewer, ASP.NET PDF Editor, MVC PDF Viewer. And provide high quality C# Convert PDF to Tiff, C# Convert PDF to Word, C# Convert PDF to HTML, C# Convert PDF to Jpeg images, and their easy and simple documents, like C# PDF SDK, C# extract text from PDF, C# Compress PDF, Print PDF in C# and C# extract image from PDF.
Terms of Use | Privacy Policy
Copyright © . All rights reserved.