Skip to content

Instantly share code, notes, and snippets.

@alvareztech
Created March 26, 2016 23:55
Show Gist options
  • Select an option

  • Save alvareztech/341481c977d5fab80b3b to your computer and use it in GitHub Desktop.

Select an option

Save alvareztech/341481c977d5fab80b3b to your computer and use it in GitHub Desktop.
ZXing capture read code
public void onActivityResult(int requestCode, int resultCode, Intent intent) {
IntentResult scanResult = IntentIntegrator.parseActivityResult(requestCode, resultCode, intent);
if (scanResult != null) {
System.out.println("Información encontrada");
System.out.println(scanResult.getContents());
System.out.println(scanResult.getFormatName());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment