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.

Share this

Related Posts

Previous
Next Post »

4 comments

comments
8 June 2017 at 16:24 delete

Fan Layout Manager for Android
Using Fan Layout Manager you can implement the horizontal list, the items of which move like fan blades (in a circular way of a radius to your choice). To give a slightly chaotically effect to the motion, it’s possible to set an angle for the list items. So, every implementation of the library can be unique.
http://www.tellmehow.co/fan-layout-manager-android/

Reply
avatar
27 June 2020 at 15:51 delete

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

Reply
avatar

Please Comment about the Posts and Blog