In this Post, I introduce my new Gradle Library. This Library is used to Generate QR Code Automatically for our specified input. How to ...

QR-Code Generator - Library QR-Code Generator - Library

QR code generator, android qrcode, android qrcode generator

QR-Code Generator - Library

QR-Code Generator - Library

QR-CODE  GENERATOR - Library
In this Post, I introduce my new Gradle Library. This Library is used to Generate QR Code Automatically for our specified input.
How to Import the Library:
Gradle:
compile 'androidmads.library.qrgenearator:QRGenearator:1.0.0'
Permission:
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
How to use this Library:
After importing this library, use the following lines to use this library. The following lines are used to generated the QR Code
// Initializing the QR Encoder with your value to be encoded, type you required and Dimension
QRGEncoder qrgEncoder = new QRGEncoder(inputValue, null, QRGContents.Type.TEXT, smallerDimension);
try {
  // Getting QR-Code as Bitmap
  bitmap = qrgEncoder.encodeAsBitmap();
  // Setting Bitmap to ImageView
  qrImage.setImageBitmap(bitmap);
} catch (WriterException e) {
  Log.v(TAG, e.toString());
}
Save QR Code as Image
// Save with location, value, bitmap returned and type of Image(JPG/PNG).
QRGSaver.save(savePath, edtValue.getText().toString().trim(), bitmap, QRGContents.ImageType.IMAGE_JPEG);
For more Details Visit Here
Github Link:
Open Github
Leave Comment about this Library.

4 comments:

  1. With regards to item creation many hopeful web advertisers battle to think of thoughts. Generally it boils down to a few things: 1) They have no understanding and in this manner aren't happy with making a "how to" item or 2) they come up short on certain particular aptitudes like duplicate composition or programming. In the event that that is you (or was you) at that point you can relate. QR Code Creator

    ReplyDelete

Please Comment about the Posts and Blog