I want to make a QR Code Generator for Android but not using EditText and Button [closed]





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







-1















Previously I wanted to apologize for my ignorance, here are some that I have made, I made a qrcode generator that does not use EditText and also the Button to enter strings, I hope to be able to make a qrcode via Phone Number on the activity profile that I created, but when I running qrcode that I get only contains the word "false", again apologizing for the ignorance I will stackoverflow, because I'm a new user here. (R.id.phone) in xml. my profile, I try to use a different xml, thank you all,-



public class MyQrcodeActivity extends AppCompatActivity {
private String qrCodeData;
public TextView vPhone;
private User user = null;

@SuppressLint("ResourceType")
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_my_qrcode);
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
getSupportActionBar().setTitle("My QR");
try {
qrCodeData = getResources().getResourceName(R.id.phone);
} catch (Exception e) {
e.printStackTrace();
}
qrGenerator();
}

public void qrGenerator() {
try {
//setting size of qr code
WindowManager manager = (WindowManager) getSystemService(WINDOW_SERVICE);
Display display = manager.getDefaultDisplay();
Point point = new Point();
display.getSize(point);
int width = point.x;
int height = point.y;
int smallestDimension = width < height ? width : height;
//setting parameters for qr code
String charset = "UTF-8"; // or "ISO-8859-1"
Map<EncodeHintType, ErrorCorrectionLevel> hintMap = new HashMap<EncodeHintType, ErrorCorrectionLevel>();
hintMap.put(EncodeHintType.ERROR_CORRECTION, ErrorCorrectionLevel.L);
createQRCode(qrCodeData, charset, hintMap, smallestDimension, smallestDimension);

} catch (Exception ex) {
Log.e("QrGenerate", ex.getMessage());
}
}

public void createQRCode(String qrCodeData, String charset, Map hintMap, int qrCodeheight, int qrCodewidth) {

try {
//generating qr code in bitmatrix type
BitMatrix matrix = new MultiFormatWriter().encode(new String(qrCodeData.getBytes(charset), charset), BarcodeFormat.QR_CODE, qrCodewidth, qrCodeheight, hintMap);
//converting bitmatrix to bitmap
int width = matrix.getWidth();
int height = matrix.getHeight();
int pixels = new int[width * height];
// All are 0, or black, by default
for (int y = 0; y < height; y++) {
int offset = y * width;
for (int x = 0; x < width; x++) {
pixels[offset + x] = matrix.get(x, y) ? BLACK : WHITE;
}
}

Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);
bitmap.setPixels(pixels, 0, width, 0, 0, width, height);
//setting bitmap to image view
ImageView myImage = (ImageView) findViewById(R.id.imageViewBitmap);
myImage.setImageBitmap(bitmap);
} catch (Exception er) {
Log.e("QrGenerate", er.getMessage());
}
}

@Override
public boolean onOptionsItemSelected (MenuItem item){
int id = item.getItemId();
if (id == android.R.id.home) {
onBackPressed();
return true;
}
return super.onOptionsItemSelected(item);
}


}










share|improve this question















closed as off-topic by Mike M., talex, Vladyslav Matviienko, CozyAzure, EdChum Nov 23 '18 at 9:35


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example." – talex, EdChum

If this question can be reworded to fit the rules in the help center, please edit the question.












  • 1





    Hello. So what exactly have you tried to accomplish this? StackOverflow is not a free code writing service. You can't just give some requirements and expect people to write the code for you. Please show some attempt at solving the problem. If what you have tried is not working, then refer back here with the problem and what you have tried, that way you can receive aid. But, this is not a place to post requirements and get code in return.

    – Ishaan Javali
    Nov 23 '18 at 4:03











  • It is totally unclear what you want to achieve and what is the problem.

    – Vladyslav Matviienko
    Nov 23 '18 at 6:30


















-1















Previously I wanted to apologize for my ignorance, here are some that I have made, I made a qrcode generator that does not use EditText and also the Button to enter strings, I hope to be able to make a qrcode via Phone Number on the activity profile that I created, but when I running qrcode that I get only contains the word "false", again apologizing for the ignorance I will stackoverflow, because I'm a new user here. (R.id.phone) in xml. my profile, I try to use a different xml, thank you all,-



public class MyQrcodeActivity extends AppCompatActivity {
private String qrCodeData;
public TextView vPhone;
private User user = null;

@SuppressLint("ResourceType")
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_my_qrcode);
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
getSupportActionBar().setTitle("My QR");
try {
qrCodeData = getResources().getResourceName(R.id.phone);
} catch (Exception e) {
e.printStackTrace();
}
qrGenerator();
}

public void qrGenerator() {
try {
//setting size of qr code
WindowManager manager = (WindowManager) getSystemService(WINDOW_SERVICE);
Display display = manager.getDefaultDisplay();
Point point = new Point();
display.getSize(point);
int width = point.x;
int height = point.y;
int smallestDimension = width < height ? width : height;
//setting parameters for qr code
String charset = "UTF-8"; // or "ISO-8859-1"
Map<EncodeHintType, ErrorCorrectionLevel> hintMap = new HashMap<EncodeHintType, ErrorCorrectionLevel>();
hintMap.put(EncodeHintType.ERROR_CORRECTION, ErrorCorrectionLevel.L);
createQRCode(qrCodeData, charset, hintMap, smallestDimension, smallestDimension);

} catch (Exception ex) {
Log.e("QrGenerate", ex.getMessage());
}
}

public void createQRCode(String qrCodeData, String charset, Map hintMap, int qrCodeheight, int qrCodewidth) {

try {
//generating qr code in bitmatrix type
BitMatrix matrix = new MultiFormatWriter().encode(new String(qrCodeData.getBytes(charset), charset), BarcodeFormat.QR_CODE, qrCodewidth, qrCodeheight, hintMap);
//converting bitmatrix to bitmap
int width = matrix.getWidth();
int height = matrix.getHeight();
int pixels = new int[width * height];
// All are 0, or black, by default
for (int y = 0; y < height; y++) {
int offset = y * width;
for (int x = 0; x < width; x++) {
pixels[offset + x] = matrix.get(x, y) ? BLACK : WHITE;
}
}

Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);
bitmap.setPixels(pixels, 0, width, 0, 0, width, height);
//setting bitmap to image view
ImageView myImage = (ImageView) findViewById(R.id.imageViewBitmap);
myImage.setImageBitmap(bitmap);
} catch (Exception er) {
Log.e("QrGenerate", er.getMessage());
}
}

@Override
public boolean onOptionsItemSelected (MenuItem item){
int id = item.getItemId();
if (id == android.R.id.home) {
onBackPressed();
return true;
}
return super.onOptionsItemSelected(item);
}


}










share|improve this question















closed as off-topic by Mike M., talex, Vladyslav Matviienko, CozyAzure, EdChum Nov 23 '18 at 9:35


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example." – talex, EdChum

If this question can be reworded to fit the rules in the help center, please edit the question.












  • 1





    Hello. So what exactly have you tried to accomplish this? StackOverflow is not a free code writing service. You can't just give some requirements and expect people to write the code for you. Please show some attempt at solving the problem. If what you have tried is not working, then refer back here with the problem and what you have tried, that way you can receive aid. But, this is not a place to post requirements and get code in return.

    – Ishaan Javali
    Nov 23 '18 at 4:03











  • It is totally unclear what you want to achieve and what is the problem.

    – Vladyslav Matviienko
    Nov 23 '18 at 6:30














-1












-1








-1








Previously I wanted to apologize for my ignorance, here are some that I have made, I made a qrcode generator that does not use EditText and also the Button to enter strings, I hope to be able to make a qrcode via Phone Number on the activity profile that I created, but when I running qrcode that I get only contains the word "false", again apologizing for the ignorance I will stackoverflow, because I'm a new user here. (R.id.phone) in xml. my profile, I try to use a different xml, thank you all,-



public class MyQrcodeActivity extends AppCompatActivity {
private String qrCodeData;
public TextView vPhone;
private User user = null;

@SuppressLint("ResourceType")
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_my_qrcode);
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
getSupportActionBar().setTitle("My QR");
try {
qrCodeData = getResources().getResourceName(R.id.phone);
} catch (Exception e) {
e.printStackTrace();
}
qrGenerator();
}

public void qrGenerator() {
try {
//setting size of qr code
WindowManager manager = (WindowManager) getSystemService(WINDOW_SERVICE);
Display display = manager.getDefaultDisplay();
Point point = new Point();
display.getSize(point);
int width = point.x;
int height = point.y;
int smallestDimension = width < height ? width : height;
//setting parameters for qr code
String charset = "UTF-8"; // or "ISO-8859-1"
Map<EncodeHintType, ErrorCorrectionLevel> hintMap = new HashMap<EncodeHintType, ErrorCorrectionLevel>();
hintMap.put(EncodeHintType.ERROR_CORRECTION, ErrorCorrectionLevel.L);
createQRCode(qrCodeData, charset, hintMap, smallestDimension, smallestDimension);

} catch (Exception ex) {
Log.e("QrGenerate", ex.getMessage());
}
}

public void createQRCode(String qrCodeData, String charset, Map hintMap, int qrCodeheight, int qrCodewidth) {

try {
//generating qr code in bitmatrix type
BitMatrix matrix = new MultiFormatWriter().encode(new String(qrCodeData.getBytes(charset), charset), BarcodeFormat.QR_CODE, qrCodewidth, qrCodeheight, hintMap);
//converting bitmatrix to bitmap
int width = matrix.getWidth();
int height = matrix.getHeight();
int pixels = new int[width * height];
// All are 0, or black, by default
for (int y = 0; y < height; y++) {
int offset = y * width;
for (int x = 0; x < width; x++) {
pixels[offset + x] = matrix.get(x, y) ? BLACK : WHITE;
}
}

Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);
bitmap.setPixels(pixels, 0, width, 0, 0, width, height);
//setting bitmap to image view
ImageView myImage = (ImageView) findViewById(R.id.imageViewBitmap);
myImage.setImageBitmap(bitmap);
} catch (Exception er) {
Log.e("QrGenerate", er.getMessage());
}
}

@Override
public boolean onOptionsItemSelected (MenuItem item){
int id = item.getItemId();
if (id == android.R.id.home) {
onBackPressed();
return true;
}
return super.onOptionsItemSelected(item);
}


}










share|improve this question
















Previously I wanted to apologize for my ignorance, here are some that I have made, I made a qrcode generator that does not use EditText and also the Button to enter strings, I hope to be able to make a qrcode via Phone Number on the activity profile that I created, but when I running qrcode that I get only contains the word "false", again apologizing for the ignorance I will stackoverflow, because I'm a new user here. (R.id.phone) in xml. my profile, I try to use a different xml, thank you all,-



public class MyQrcodeActivity extends AppCompatActivity {
private String qrCodeData;
public TextView vPhone;
private User user = null;

@SuppressLint("ResourceType")
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_my_qrcode);
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
getSupportActionBar().setTitle("My QR");
try {
qrCodeData = getResources().getResourceName(R.id.phone);
} catch (Exception e) {
e.printStackTrace();
}
qrGenerator();
}

public void qrGenerator() {
try {
//setting size of qr code
WindowManager manager = (WindowManager) getSystemService(WINDOW_SERVICE);
Display display = manager.getDefaultDisplay();
Point point = new Point();
display.getSize(point);
int width = point.x;
int height = point.y;
int smallestDimension = width < height ? width : height;
//setting parameters for qr code
String charset = "UTF-8"; // or "ISO-8859-1"
Map<EncodeHintType, ErrorCorrectionLevel> hintMap = new HashMap<EncodeHintType, ErrorCorrectionLevel>();
hintMap.put(EncodeHintType.ERROR_CORRECTION, ErrorCorrectionLevel.L);
createQRCode(qrCodeData, charset, hintMap, smallestDimension, smallestDimension);

} catch (Exception ex) {
Log.e("QrGenerate", ex.getMessage());
}
}

public void createQRCode(String qrCodeData, String charset, Map hintMap, int qrCodeheight, int qrCodewidth) {

try {
//generating qr code in bitmatrix type
BitMatrix matrix = new MultiFormatWriter().encode(new String(qrCodeData.getBytes(charset), charset), BarcodeFormat.QR_CODE, qrCodewidth, qrCodeheight, hintMap);
//converting bitmatrix to bitmap
int width = matrix.getWidth();
int height = matrix.getHeight();
int pixels = new int[width * height];
// All are 0, or black, by default
for (int y = 0; y < height; y++) {
int offset = y * width;
for (int x = 0; x < width; x++) {
pixels[offset + x] = matrix.get(x, y) ? BLACK : WHITE;
}
}

Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);
bitmap.setPixels(pixels, 0, width, 0, 0, width, height);
//setting bitmap to image view
ImageView myImage = (ImageView) findViewById(R.id.imageViewBitmap);
myImage.setImageBitmap(bitmap);
} catch (Exception er) {
Log.e("QrGenerate", er.getMessage());
}
}

@Override
public boolean onOptionsItemSelected (MenuItem item){
int id = item.getItemId();
if (id == android.R.id.home) {
onBackPressed();
return true;
}
return super.onOptionsItemSelected(item);
}


}







java android android-studio generator qr-code






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 23 '18 at 5:54







Lukmanul hakim Malawat

















asked Nov 23 '18 at 4:00









Lukmanul hakim MalawatLukmanul hakim Malawat

255




255




closed as off-topic by Mike M., talex, Vladyslav Matviienko, CozyAzure, EdChum Nov 23 '18 at 9:35


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example." – talex, EdChum

If this question can be reworded to fit the rules in the help center, please edit the question.







closed as off-topic by Mike M., talex, Vladyslav Matviienko, CozyAzure, EdChum Nov 23 '18 at 9:35


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example." – talex, EdChum

If this question can be reworded to fit the rules in the help center, please edit the question.








  • 1





    Hello. So what exactly have you tried to accomplish this? StackOverflow is not a free code writing service. You can't just give some requirements and expect people to write the code for you. Please show some attempt at solving the problem. If what you have tried is not working, then refer back here with the problem and what you have tried, that way you can receive aid. But, this is not a place to post requirements and get code in return.

    – Ishaan Javali
    Nov 23 '18 at 4:03











  • It is totally unclear what you want to achieve and what is the problem.

    – Vladyslav Matviienko
    Nov 23 '18 at 6:30














  • 1





    Hello. So what exactly have you tried to accomplish this? StackOverflow is not a free code writing service. You can't just give some requirements and expect people to write the code for you. Please show some attempt at solving the problem. If what you have tried is not working, then refer back here with the problem and what you have tried, that way you can receive aid. But, this is not a place to post requirements and get code in return.

    – Ishaan Javali
    Nov 23 '18 at 4:03











  • It is totally unclear what you want to achieve and what is the problem.

    – Vladyslav Matviienko
    Nov 23 '18 at 6:30








1




1





Hello. So what exactly have you tried to accomplish this? StackOverflow is not a free code writing service. You can't just give some requirements and expect people to write the code for you. Please show some attempt at solving the problem. If what you have tried is not working, then refer back here with the problem and what you have tried, that way you can receive aid. But, this is not a place to post requirements and get code in return.

– Ishaan Javali
Nov 23 '18 at 4:03





Hello. So what exactly have you tried to accomplish this? StackOverflow is not a free code writing service. You can't just give some requirements and expect people to write the code for you. Please show some attempt at solving the problem. If what you have tried is not working, then refer back here with the problem and what you have tried, that way you can receive aid. But, this is not a place to post requirements and get code in return.

– Ishaan Javali
Nov 23 '18 at 4:03













It is totally unclear what you want to achieve and what is the problem.

– Vladyslav Matviienko
Nov 23 '18 at 6:30





It is totally unclear what you want to achieve and what is the problem.

– Vladyslav Matviienko
Nov 23 '18 at 6:30












1 Answer
1






active

oldest

votes


















1














Take ImageView in your xml :



<ImageView
android:id="@+id/qrcode"
android:layout_width="@dimen/sdp200"
android:layout_height="@dimen/sdp200"
android:layout_centerHorizontal="true"
android:layout_marginTop="10dp"
android:layout_marginBottom="@dimen/margin10"
android:layout_below="@+id/relativeLayout2"
android:contentDescription="QR Code"/>


In your Activity :



ImageView qrcode = findViewById(R.id.qrcode); 
TextView txtnumber = findViewById(R.id.txtmobile);

String strMobile = txtnumber.getText().toString();

Bitmap lBitmap = QRCode.from(strMobile ).bitmap();
qrcode.setImageBitmap(lBitmap);


Add dependencies :



implementation 'com.github.kenglxn.QRGen:android:2.2.0'    


enter image description here



It will generate qrcode of mobile number.



Hope this will help you.






share|improve this answer
























  • thank you so much for your solution bro, what if I want the qrcode to be displayed on the new activity not on the same activity

    – Lukmanul hakim Malawat
    Nov 23 '18 at 6:04











  • pass mobile number through intent on new activity .. in image view of that new activity set QR code String strMobile = intent.getStringExtra("mobileNumber"); Bitmap lBitmap = QRCode.from(strMobile ).bitmap(); qrcode.setImageBitmap(lBitmap);

    – Unnati Patadia
    Nov 23 '18 at 6:41













  • excellent bro!! this is very helpful, Thank you so much for helping me,-

    – Lukmanul hakim Malawat
    Nov 23 '18 at 6:48


















1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









1














Take ImageView in your xml :



<ImageView
android:id="@+id/qrcode"
android:layout_width="@dimen/sdp200"
android:layout_height="@dimen/sdp200"
android:layout_centerHorizontal="true"
android:layout_marginTop="10dp"
android:layout_marginBottom="@dimen/margin10"
android:layout_below="@+id/relativeLayout2"
android:contentDescription="QR Code"/>


In your Activity :



ImageView qrcode = findViewById(R.id.qrcode); 
TextView txtnumber = findViewById(R.id.txtmobile);

String strMobile = txtnumber.getText().toString();

Bitmap lBitmap = QRCode.from(strMobile ).bitmap();
qrcode.setImageBitmap(lBitmap);


Add dependencies :



implementation 'com.github.kenglxn.QRGen:android:2.2.0'    


enter image description here



It will generate qrcode of mobile number.



Hope this will help you.






share|improve this answer
























  • thank you so much for your solution bro, what if I want the qrcode to be displayed on the new activity not on the same activity

    – Lukmanul hakim Malawat
    Nov 23 '18 at 6:04











  • pass mobile number through intent on new activity .. in image view of that new activity set QR code String strMobile = intent.getStringExtra("mobileNumber"); Bitmap lBitmap = QRCode.from(strMobile ).bitmap(); qrcode.setImageBitmap(lBitmap);

    – Unnati Patadia
    Nov 23 '18 at 6:41













  • excellent bro!! this is very helpful, Thank you so much for helping me,-

    – Lukmanul hakim Malawat
    Nov 23 '18 at 6:48
















1














Take ImageView in your xml :



<ImageView
android:id="@+id/qrcode"
android:layout_width="@dimen/sdp200"
android:layout_height="@dimen/sdp200"
android:layout_centerHorizontal="true"
android:layout_marginTop="10dp"
android:layout_marginBottom="@dimen/margin10"
android:layout_below="@+id/relativeLayout2"
android:contentDescription="QR Code"/>


In your Activity :



ImageView qrcode = findViewById(R.id.qrcode); 
TextView txtnumber = findViewById(R.id.txtmobile);

String strMobile = txtnumber.getText().toString();

Bitmap lBitmap = QRCode.from(strMobile ).bitmap();
qrcode.setImageBitmap(lBitmap);


Add dependencies :



implementation 'com.github.kenglxn.QRGen:android:2.2.0'    


enter image description here



It will generate qrcode of mobile number.



Hope this will help you.






share|improve this answer
























  • thank you so much for your solution bro, what if I want the qrcode to be displayed on the new activity not on the same activity

    – Lukmanul hakim Malawat
    Nov 23 '18 at 6:04











  • pass mobile number through intent on new activity .. in image view of that new activity set QR code String strMobile = intent.getStringExtra("mobileNumber"); Bitmap lBitmap = QRCode.from(strMobile ).bitmap(); qrcode.setImageBitmap(lBitmap);

    – Unnati Patadia
    Nov 23 '18 at 6:41













  • excellent bro!! this is very helpful, Thank you so much for helping me,-

    – Lukmanul hakim Malawat
    Nov 23 '18 at 6:48














1












1








1







Take ImageView in your xml :



<ImageView
android:id="@+id/qrcode"
android:layout_width="@dimen/sdp200"
android:layout_height="@dimen/sdp200"
android:layout_centerHorizontal="true"
android:layout_marginTop="10dp"
android:layout_marginBottom="@dimen/margin10"
android:layout_below="@+id/relativeLayout2"
android:contentDescription="QR Code"/>


In your Activity :



ImageView qrcode = findViewById(R.id.qrcode); 
TextView txtnumber = findViewById(R.id.txtmobile);

String strMobile = txtnumber.getText().toString();

Bitmap lBitmap = QRCode.from(strMobile ).bitmap();
qrcode.setImageBitmap(lBitmap);


Add dependencies :



implementation 'com.github.kenglxn.QRGen:android:2.2.0'    


enter image description here



It will generate qrcode of mobile number.



Hope this will help you.






share|improve this answer













Take ImageView in your xml :



<ImageView
android:id="@+id/qrcode"
android:layout_width="@dimen/sdp200"
android:layout_height="@dimen/sdp200"
android:layout_centerHorizontal="true"
android:layout_marginTop="10dp"
android:layout_marginBottom="@dimen/margin10"
android:layout_below="@+id/relativeLayout2"
android:contentDescription="QR Code"/>


In your Activity :



ImageView qrcode = findViewById(R.id.qrcode); 
TextView txtnumber = findViewById(R.id.txtmobile);

String strMobile = txtnumber.getText().toString();

Bitmap lBitmap = QRCode.from(strMobile ).bitmap();
qrcode.setImageBitmap(lBitmap);


Add dependencies :



implementation 'com.github.kenglxn.QRGen:android:2.2.0'    


enter image description here



It will generate qrcode of mobile number.



Hope this will help you.







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 23 '18 at 5:01









Unnati PatadiaUnnati Patadia

144216




144216













  • thank you so much for your solution bro, what if I want the qrcode to be displayed on the new activity not on the same activity

    – Lukmanul hakim Malawat
    Nov 23 '18 at 6:04











  • pass mobile number through intent on new activity .. in image view of that new activity set QR code String strMobile = intent.getStringExtra("mobileNumber"); Bitmap lBitmap = QRCode.from(strMobile ).bitmap(); qrcode.setImageBitmap(lBitmap);

    – Unnati Patadia
    Nov 23 '18 at 6:41













  • excellent bro!! this is very helpful, Thank you so much for helping me,-

    – Lukmanul hakim Malawat
    Nov 23 '18 at 6:48



















  • thank you so much for your solution bro, what if I want the qrcode to be displayed on the new activity not on the same activity

    – Lukmanul hakim Malawat
    Nov 23 '18 at 6:04











  • pass mobile number through intent on new activity .. in image view of that new activity set QR code String strMobile = intent.getStringExtra("mobileNumber"); Bitmap lBitmap = QRCode.from(strMobile ).bitmap(); qrcode.setImageBitmap(lBitmap);

    – Unnati Patadia
    Nov 23 '18 at 6:41













  • excellent bro!! this is very helpful, Thank you so much for helping me,-

    – Lukmanul hakim Malawat
    Nov 23 '18 at 6:48

















thank you so much for your solution bro, what if I want the qrcode to be displayed on the new activity not on the same activity

– Lukmanul hakim Malawat
Nov 23 '18 at 6:04





thank you so much for your solution bro, what if I want the qrcode to be displayed on the new activity not on the same activity

– Lukmanul hakim Malawat
Nov 23 '18 at 6:04













pass mobile number through intent on new activity .. in image view of that new activity set QR code String strMobile = intent.getStringExtra("mobileNumber"); Bitmap lBitmap = QRCode.from(strMobile ).bitmap(); qrcode.setImageBitmap(lBitmap);

– Unnati Patadia
Nov 23 '18 at 6:41







pass mobile number through intent on new activity .. in image view of that new activity set QR code String strMobile = intent.getStringExtra("mobileNumber"); Bitmap lBitmap = QRCode.from(strMobile ).bitmap(); qrcode.setImageBitmap(lBitmap);

– Unnati Patadia
Nov 23 '18 at 6:41















excellent bro!! this is very helpful, Thank you so much for helping me,-

– Lukmanul hakim Malawat
Nov 23 '18 at 6:48





excellent bro!! this is very helpful, Thank you so much for helping me,-

– Lukmanul hakim Malawat
Nov 23 '18 at 6:48





Popular posts from this blog

How to send String Array data to Server using php in android

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

Is anime1.com a legal site for watching anime?