Android Code 39 Generator generate, create barcode Code 39 images in Android application
Code 39 Generator for Android to Generate Code-39 Barcodes in Android Application using Android Barcode Generator Library
- Easy to use Android Code 39 generation api
- Developed from Java Code 39 barcode generator
- Compatible with Android 1.5 SDK and later versions
- Easy to add the Code 39 SDK into Android apps
- Generate high quality Code 39 barcode with the Android Code 39 SDK
- GIF, JPEG, and PNG are supported by the Android Code 39 Barcode Generator
- Reliable and mature Android barcode library for Code 39 generation
- Compatible with the latest Code 39 barcode symbology standard
- Android Code 39 source code is available for the purchase of the Source Code license
Index
Android Code 39 Barcode Generator Introduction
Android Code 39 barcode API is a Code 39 generator for Android apps, designed for creating Code 39 barcode on Android platform.
- Android Code 39 SDK is entirely developed for Android platform
- Android Code 39 generator is completely built in Android 1.5 SDK
- Developer Licenses for this Android Code 39 library are royalty-free and perpetual
excel vba create qr code,
c# data matrix library,
how to make barcodes in word,
how to print barcode in crystal report using c#,
barcode scanner java,
zen barcode c# example
Code 39 (also known as "USS Code 39", "Code 3/9", "Code 3 of 9", "USD-3", "Alpha39", "Type 39") is a barcode symbology that can encode uppercase letters (A through Z), digits (0 through 9) and a handful of special characters like the $ sign.
Code 39 is restricted to 44 characters. In Full ASCII Code 39 Symbols 0-9, A-Z, "." ,and "-" are the same as their representations in Code 39. Lower case letters, additional punctuation characters and control characters are represented by sequences of two characters of Code 39.
OnBarcode offers several Code 39 Generator components and software, such as
Code 39 .NET,
Code 39 Java,
Code 39 C#,
Code 39 VB.NET,
Code 39 ASP.NET,
Code 39 Generator.
Code 39 Valid Data Scope
Android Barcode Code 39 supports:
- 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
- Uppercase letters (A - Z)
- - (Dash), $ (Dollar), % (Percentage), (Space), . (Point), / (Slash), + (Plus)
Android Barcode Code 39 Extension supports:
How to generate Code 39 barcodes in your Android application?
Generating barcode Code 39 in Java Class example
Code39 barcode = new Code39();
/*
Code39 Valid data char set:
0, 1, 2, 3, 4, 5, 6, 7, 8, 9 (Digits)
A - Z (Uppercase letters)
- (Dash), $ (Dollar), % (Percentage), (Space), . (Point), / (Slash), + (Plus)
Code39 extension Valid data char set:
All ASCII 128 characters
*/
// Code39 encodes upper case chars only, for lower case chars, use Code 39 extension
barcode.setData("123456789012");
barcode.setExtension(false);
barcode.setAddCheckSum(true);
// Code 39 Wide Narrow bar Ratio
// Valid value is from 2.0 to 3.0 inclusive.
barcode.setN(3.0f);
// The space between 2 characters in code 39; This a multiple of X; The default is 1.;
// Valid value is from 1.0 (inclusive) to 5.3 (exclusive)
barcode.setI(1.0f);
barcode.setShowStartStopInText(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 Code 39 Barcode Properties
Barcode Java Class:
com.onbarcode.barcode.android.Code39.
Category |
Properties |
Value |
Comments |
Basic
|
Property: data
|
Type: String
Default: ""
|
Code 39 barcode data to encode
Code 39 Valid Data Char Set:
- 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 (Digits)
- A - Z (Uppercase letters)
- - (Dash), $ (Dollar), % (Percentage), (Space), . (Point), / (Slash), + (Plus)
Code 39 extension Valid Data Char Set:
|
Property: addCheckSum
|
Type: boolean
Default: false
|
addCheckSum property is optional for Code 39. Modulo 43 will be applied, if addCheckSum property is true. |
|
Code 39 Special |
Property: extension
|
Type: boolean
Default: false
|
Code 39 is encoding upper case letters, if you want to encode lower case letters and other 128 ASCII characters, you need set extension property to true.
|
Property: I
|
Type: float
Default: 1.0f
|
The space between 2 characters in code 39. This a multiple of X module (bar width).
|
Property: N
|
Type: float
Default: 2.0f
|
Wide bar vs narrow bar ratio. Valid values are 2.0 - 3.0 inclusive, default is 2.0. |
Property: showStarStopInText
|
Type: boolean
Default: true
|
If true, print a * in the beginning and end of barcode text in Code 39 barcode |
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, such as non-printable chars in ASCII table.
- 1-byte character: ~0dd/~1dd/~2dd (character value from 000 ~ 255);
Strings from "~256" to "~299" are unused
|
|
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