Skip to content

Instantly share code, notes, and snippets.

@mahendruankit
Created March 17, 2014 16:59
Show Gist options
  • Save mahendruankit/9603454 to your computer and use it in GitHub Desktop.
Save mahendruankit/9603454 to your computer and use it in GitHub Desktop.
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