Issues with QR scanner in Android Wallet app
-
My new phone HTC M8 works much better than the One X where it would just refuse to focus. I believe it’s an incompatibility in some phones cameras?
Yes moving in and out makes no difference, it just doesn’t focus, unlike my other QR reader app.
My phone is a Samsung SII.
Must be nearly time for me to ‘drop my phone’
I can work around the issue for now though
-
How did you manage to work around the problem?
-
How did you manage to work around the problem?
I have another QR scanning app on my phone that works, so scan with that, copy to clipboard and paste into wallet.
Not ideal, but atleast it means I can continue with my project.
-
Ah yeah thats a good workaround for now. :)
-
Reduce the error correction level on the QR code as you generate it with the Pi, will also speed up the generation a little. I did make a post about it somewhere but I’m on my mobile and can’t find it at the moment
-
At the moment I’ve kept the QR side ultra simple.
All payments go to the same account and it just checks as that balance increments, so the QR code was generated using the QR generator on this forum and its just a PNG file that displays on the Pi.
-
Right got you now, send me the payment address and any other info you put into the code and I will generate you a file that can be read from that screen using the android wallet.
The code generated by the api is to complex for that size screen, again still on my phone so can’t get all the info I want but I’ll have a look later and see if I can find it for you.
-
I’ll send it to you tonight when I get home.
Want to do some further refinements to the code.
For example at the moment the payment address is in the API module, need to move that back to the main program and just pass it to the API module, so any changes to the cost of one credit or changing the address you only need to go to one place.
-
Right managed to dig up the old post…
It’s the bit count not the error correcting you need to change, I started off with a type 20 QRCode and everything was working fine with the old wallet version but the shift to v2 caused things to play up on the smaller screen similar to the one you are using. So I switched to a type 10 QRCode and the problem was gone :)
Offer still stands for me to generate you a code to use or you can do it yourself very simply in python
import qrcode qrdata = ("feathercoin:%s?amount=%s&label=%s") % (address, amount, label) qr = qrcode.QRCode(version=10) qr.add_data(qrdata) qr.make() im = qr.make_image() im.save("qr.png")
-
Thanks, after battling with installing the correct modules on the Raspberry I can now produce QR codes in PNG format.
It still wont read on my phone using the in app qr scanner though, guessing this is just an incompatibility with my phone, but being able to create QR codes on the fly gets me one further step forward with my project