Android QR Code Generator generate, create 2d barcode QR Code images in Android application

QR Code Generator for Android to Generate QRCode Barcodes in Android Application using Android Barcode Generator Library

  • Easy to use Android QR Code generation api
  • Developed from Java QR Code barcode generator
  • Compatible with Android 1.5 SDK and later versions
  • Easily integrate the QR Code SDK into Android apps
  • Generate high quality QR Code barcode with the Android QR Code SDK
  • GIF, JPEG, and PNG are supported by the Android QR Code Barcode Generator
  • Simply encode URLs, contact information, and etc. into Data Matrix
  • Reliable and mature Android barcode library for QR Code generation
  • Compatible with the latest QR Code barcode symbology standard
  • Android QR Code source code is available for the purchase of the Source Code license


Index
 

Android QR Code Barcode Generator Introduction

Android QR Code barcode API is a QR Code generator for Android apps, designed for creating QR Code barcode on Android platform.

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

ean 13 c#, c# data matrix library, .net barcode reader code, free qr font for excel, how to add barcode in rdlc report, barcode plugin excel 2007

QR Code is a matrix code (or two-dimensional bar code) created by Japanese corporation Denso-Wave in 1994. The "QR" is derived from "Quick Response", as the creator intended the code to allow its contents to be decoded at high speed.

OnBarcode provides several QR Code Generator components and software, including QR Code C#, QR Code .NET, QR Code Java, QR Code VB.NET, QR Code ASP.NET, QR Code iPhone, QR Code iPad, QR Code Generator.

 

Android QR Code Generator Valid Data Scope

Android QRCode Generator supports:

  • numeric data (digits 0 - 9);
  • alphanumeric data (digits 0 - 9; upper case letters A -Z; nine other characters: space, $ % * + - . / : );
  • byte data (default: ISO/IEC 8859-1);
  • Kanji characters.

 

How to generate QR Code barcodes in your Android application?

Generating barcode QRCode in Java Class example

	QRCode barcode = new QRCode();
	
	/*
	   QRCode Valid data char set:
	        numeric data (digits 0 - 9);
	        alphanumeric data (digits 0 - 9; upper case letters A -Z; nine other characters: space, $ % * + - . / : );
	        byte data (default: ISO/IEC 8859-1);
	        Kanji characters
	*/
	barcode.setData("http://www.onbarcode.com");
	barcode.setDataMode(QRCode.M_AUTO);
	barcode.setVersion(10);
	barcode.setEcl(QRCode.ECL_M);
	
	//  if you want to encode GS1 compatible QR Code, you need set FNC1 mode to IBarcode.FNC1_ENABLE
	barcode.setFnc1Mode(IBarcode.FNC1_NONE);
	
	//  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-byte character: ~ddd (character value from 0 ~ 255)
	//  ASCII (with EXT): from ~000 to ~255
	//  2-byte character: ~6ddddd (character value from 0 ~ 65535)
	//  Unicode: from ~600000 to ~665535
	//  ECI: from ~7000000 to ~7999999
	//  SJIS: from ~9ddddd (Shift JIS 0x8140 ~ 0x9FFC and 0xE040 ~ 0xEBBF)
	barcode.setProcessTilde(false);
	
	// unit of measure for X, Y, LeftMargin, RightMargin, TopMargin, BottomMargin
	barcode.setUom(IBarcode.UOM_PIXEL);
	// barcode module width in pixel
	barcode.setX(3f);
	
	barcode.setLeftMargin(15f);
	barcode.setRightMargin(15f);
	barcode.setTopMargin(15f);
	barcode.setBottomMargin(15f);
	// barcode image resolution in dpi
	barcode.setResolution(72);
	
	// 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 QR Code Generator QR-Code Properties

Barcode Java Class: com.onbarcode.barcode.android.QRCode.

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

QR Code Valid Data Char Set:
  • numeric data (digits 0 - 9);
  • alphanumeric data (digits 0 - 9; upper case letters A -Z; nine other characters: space, $ % * + - . / : );
  • byte data (default: ISO/IEC 8859-1);
  • Kanji characters

 
QRCode
Special
Property: processTilde Type: boolean
Default: true
Set the processTilde property to true, if you want use the tilde character "~" to specify special characters in the input data. Default is true.
  • 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 with 2 digits
    ~ai3: AI with 3 digits
    ~ai4: AI with 4 digits
    ~ai5: AI with 5 digits
    ~ai6: AI with 6 digits
    ~ai7: AI with 7 digits
  • ECI: ~7dddddd (valid value of dddddd from 000000 to 999999)
  • SJIS: from ~9ddddd (Shift JIS 0x8140 ~ 0x9FFC and 0xE040 ~ 0xEBBF)
Property: dataMode Type: int
Default: 0 (QRCode.M_AUTO)
  • QRCode.M_AUTO (0): It allows encoding all 256 possible 8-bit byte values. This includes all ASCII characters value from 0 to 127 inclusive and provides for international character set support
  • QRCode.M_ALPHANUMERIC (1): It allows encoding alphanumeric data (digits 0 - 9; upper case letters A -Z; nine other characters: space, $ % * + - . / : ).
  • QRCode.M_BYTE (2): It allows encoding byte data (default: ISO/IEC 8859-1).
  • QRCode.M_NUMERIC (3): It allows encoding numeric data (digits 0 - 9).
  • QRCode.M_KANJI (4): It allows encoding Kanji characters.
Property: ECL Type: int
Default: QRCode.L (0)
QRCode Error Correction Level.
  • QRCode.ECL_L (0)
  • QRCode.ECL_M (1)
  • QRCode.ECL_Q (2)
  • QRCode.ECL_H (3)
Property: fnc1Mode Type: int

Default: IBarcode.
FNC1_NONE (0)
To encode GS1 compatible QR-Code barcode, you need set fnc1Mode value to IBarcode.FNC1_ENABLE (1).
Property: structuredAppend Type: boolean
Default: false
Set StructuredAppend property to true, then Structured Append is enabled.
Property: symbolCount Type: int
Default: 0
the number of total symbols which make the sequence.
Property: symbolIndex Type: int
Default: 0
the position of current symbol in the secuence (Start with 0).
Property: parity Type: int
Default: 0
-
Property: version Type: int
Default: 1.
Valid values are from 1 to 40.
 
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: 3.
Barcode bar module width and height, default is 3 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









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 © OnBarcode.com . All rights reserved.