Last active
December 13, 2015 18:48
-
-
Save Falci/4957447 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
/** | |
* Método que será chamado no clique do botão | |
* @param view | |
*/ | |
public void lerQR(View view){ | |
// Criamos um Intent com o caminho aplicativo que irá ler o QR code | |
Intent intent = new Intent("com.google.zxing.client.android.SCAN"); | |
// Passamos o parametro "SCAN_MODE" para ler somente códigos no formato QR | |
intent.putExtra("SCAN_MODE", "QR_CODE_MODE"); | |
startActivityForResult(intent, 0); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment