People would like to know how I share an image generated within the app,
in the app's scope the person writing in the text view it captures and generates an image would like to share that image via whats or email.
private void gerarQRCode() {
String texto = edtTexto.getText().toString();
MultiFormatWriter multiFormatWriter = new MultiFormatWriter();
try {
BitMatrix bitmatrix = multiFormatWriter.encode(texto, BarcodeFormat.QR_CODE, 2000, 2000);
BarcodeEncoder barcodeEncoder = new BarcodeEncoder();
Bitmap bitmap = barcodeEncoder.createBitmap(bitmatrix);
ivQRCode.setImageBitmap(bitmap);
} catch (WriterException e) {
e.printStackTrace();
}
}