Create QRCode Image for Android

In my application, I want to create a QRCode show image on an Android screen (no internet access). I currently know how to encode a barcode scanner in my application, here is the code for my scanner

Intent intent = new Intent("");
            intent.putExtra("SCAN_MODE", "QR_CODE_MODE");
            startActivityForResult(intent, 0);


however I also need to generate a QRCode image, I have a bit of research and I got this (absolutely no idea how to encode, I'm just a student> <)


Can someone show me how to create a QRCode image for Android, thanks a lot


source to share

1 answer

Here is the method that will be coded for you.

private void encodeBarcode(String type, String data) {
  Intent intent = new Intent("");
  intent.putExtra("ENCODE_TYPE", type);
  intent.putExtra("ENCODE_DATA", data);


Here is a usage example

     encodeBarcode("TEXT_TYPE", ""); contains some more examples including all parameters for the type.



All Articles