Forum Home
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Popular

    Issues with QR scanner in Android Wallet app

    Feathercoin Discussion
    4
    13
    1323
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      tmuir12 Regular Member last edited by

      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

      1 Reply Last reply Reply Quote 0
      • kris_davison
        kris_davison last edited by

        How did you manage to work around the problem?

        1 Reply Last reply Reply Quote 0
        • T
          tmuir12 Regular Member last edited by

          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.

          1 Reply Last reply Reply Quote 0
          • kris_davison
            kris_davison last edited by

            Ah yeah thats a good workaround for now. :)

            1 Reply Last reply Reply Quote 0
            • U
              uncle_muddy administrators last edited by

              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

              1 Reply Last reply Reply Quote 0
              • T
                tmuir12 Regular Member last edited by

                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.

                1 Reply Last reply Reply Quote 0
                • U
                  uncle_muddy administrators last edited by

                  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.

                  1 Reply Last reply Reply Quote 0
                  • T
                    tmuir12 Regular Member last edited by

                    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.

                    1 Reply Last reply Reply Quote 0
                    • U
                      uncle_muddy administrators last edited by

                      Right managed to dig up the old post…

                      https://forum.feathercoin.com/index.php?/topic/6913-dev-mobile-android-and-iphone-wallet-app-application-developments/page-3#entry60450

                      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")
                      
                      1 Reply Last reply Reply Quote 0
                      • T
                        tmuir12 Regular Member last edited by

                        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

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post