-
Notifications
You must be signed in to change notification settings - Fork 258
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Start QR code scanner from app #369
Conversation
@@ -132,6 +169,25 @@ private ConnectionData parseLoginData(String connectionUri) { | |||
return new ConnectionData(values[0], values[1]); | |||
} | |||
|
|||
public void scanQrCode() { | |||
try { | |||
Intent intent = new Intent("com.google.zxing.client.android.SCAN"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does that enforce a specific QR scanner client ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup. It seems that it might not, but I didn't test it.
Needs rebase to have only the second commit. |
6271190
to
a4088f8
Compare
a4088f8
to
abb4cf2
Compare
It was a PITA to set up the app multiple times during development, so I updated this PR. I also added support for password. With these changes one can set up his account in one swift press-the-button-find-the-qr-code-point-the-phone-at-the-code motion. The intent works with multiple QR code scanning applications: a list of apps is presented by Android. I can see "Barcode Scanner" and "Binary Eye" (I don't think I have any other installed). |
abb4cf2
to
4d69fd2
Compare
Added |
In a feat of procrastination I wrote some code for the app to invoke QR-code scanner.
I added a button on one of the wizard pages. Suggestions are welcome.