I have created an app that could generate qrcode.My question is, is it possible to save the generated bitmap in phone storage and firebase at the same time.Any help would be appreciated.
My code for generating qr code :
gen_btn.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
ObtainText = Text.getText().toString().trim();
MultiFormatWriter multiFormatWriter = new MultiFormatWriter();
try {
BitMatrix bitMatrix = multiFormatWriter.encode(Text.getText().toString(), BarcodeFormat.QR_CODE, 200, 200);
BarcodeEncoder barcodeEncoder = new BarcodeEncoder();
Bitmap bitmap = barcodeEncoder.createBitmap(bitMatrix);
image.setImageBitmap(bitmap);
} catch (WriterException e) {
e.printStackTrace();
}
}
}) ;
My idea :