Created
March 17, 2014 16:59
-
-
Save mahendruankit/9603454 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
public void onActivityResult(int requestCode, int resultCode, Intent intent) { | |
QRIntentOutput scanResult = QRIntegrator.parseActivityResult(requestCode, resultCode, intent); | |
if (scanResult != null) { | |
String barcode; | |
String type; | |
barcode = scanResult.getContents(); | |
type = scanResult.getFormatName(); | |
EditText etBarcode = (EditText)findViewById(R.id.editTextBarcode); | |
EditText etType = (EditText)findViewById(R.id.editTextType); | |
etBarcode.setText(barcode); | |
etType.setText(type); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment