Created
April 25, 2018 02:39
-
-
Save parzibyte/17dd28b6dd400e78bd3792a1787eb4f3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | |
} | |
return; | |
} | |
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