Created
February 15, 2013 01:27
-
-
Save Falci/4957950 to your computer and use it in GitHub Desktop.
Sobrescrevendo o método onActivityResult
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
@Override | |
public void onActivityResult(int requestCode, int resultCode, Intent intent) { | |
if (requestCode == 0 && resultCode == Activity.RESULT_OK) { | |
String qrcode = intent.getStringExtra("SCAN_RESULT"); | |
TextView label = (TextView) findViewById(R.id.label); | |
label.setText(qrcode); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment