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
Index
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 vb.net,
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
*/
barcode.setData("(00)350123451234567894");
// 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.
barcode.setProcessTilde(true);
// Unit of Measure, pixel, cm, or inch
barcode.setUom(IBarcode.UOM_PIXEL);
// barcode bar module width (X) in pixel
barcode.setX(1f);
// barcode bar module height (Y) in pixel
barcode.setY(75f);
// barcode image margins
barcode.setLeftMargin(10f);
barcode.setRightMargin(10f);
barcode.setTopMargin(10f);
barcode.setBottomMargin(10f);
// barcode image resolution in dpi
barcode.setResolution(72);
// disply barcode encoding data below the barcode
barcode.setShowText(true);
// barcode encoding data font style
barcode.setTextFont(new AndroidFont("Arial", Typeface.NORMAL, 12));
// space between barcode and barcode encoding data
barcode.setTextMargin(6);
barcode.setTextColor(AndroidColor.black);
// barcode bar color and background color in Android device
barcode.setForeColor(AndroidColor.black);
barcode.setBackColor(AndroidColor.white);
/*
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:
com.onbarcode.barcode.android.EAN128.
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 Special |
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.
|
|
Barcode Size Related |
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)
|
|
Barcode Colors |
Property: backColor
|
Type: AndroidColor
Default: AndroidColor.white
|
Barcode image background color |
Property: foreColor
|
Type: AndroidColor
Default: AndroidColor.black
|
Barcode image foreground color
|
|
Font Style |
Property: showText
|
Type: boolean
Default: true
|
If true, display barcode data text under the barcode, otherwise do not display. |
Property: textFont
|
Type: AndroidFont
Default: 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
Default: AndroidColor.black
|
Barcode text color
|
All Android Barcode Generator Supporting Bar Code Symbology Types