Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
hds
flexin
android-app
Commits
75c8b201
Commit
75c8b201
authored
Nov 19, 2017
by
Nastuzzi Samy
Browse files
QR code can read badges
parent
acbd4287
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/src/main/java/fr/utc/simde/jessy/QRCodeReaderActivity.java
View file @
75c8b201
...
...
@@ -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
);
}
});
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment