Skip to content

Instantly share code, notes, and snippets.

Created April 25, 2018 02:39
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save parzibyte/17dd28b6dd400e78bd3792a1787eb4f3 to your computer and use it in GitHub Desktop.
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
if (resultCode != Activity.RESULT_OK) {
Toast.makeText(getApplicationContext(), "No se pudo obtener una respuesta", Toast.LENGTH_SHORT).show();
String resultado = data.getStringExtra("com.blikoon.qrcodescanner.error_decoding_image");
if (resultado != null) {
Toast.makeText(getApplicationContext(), "No se pudo escanear el código QR", Toast.LENGTH_SHORT).show();
if (requestCode == REQUEST_CODE_QR_SCAN) {
if (data != null) {
String lectura = data.getStringExtra("com.blikoon.qrcodescanner.got_qr_scan_relult");
Toast.makeText(getApplicationContext(), "Leído: " + lectura, Toast.LENGTH_SHORT).show();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment