Commit 75c8b201 authored by Nastuzzi Samy's avatar Nastuzzi Samy
Browse files

QR code can read badges

parent acbd4287
......@@ -52,4 +52,15 @@ public class QRCodeReaderActivity extends BaseActivity {
this.scannerView.setResultHandler(this.cameraHandler);
this.scannerView.startCamera(CAMERA_FACING_BACK);
}
@Override
public void onIdentification(final String badgeId) {
this.scannerView.stopCamera();
dialog.infoDialog(QRCodeReaderActivity.this, getString(R.string.badge_read), "Badge: " + badgeId, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
scannerView.startCamera(CAMERA_FACING_BACK);
}
});
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment