Android Question Help needed to generate Qr Code in B4A using B4J example

Discussion in 'Android Questions' started by MarianoDuk, May 5, 2019.

  1. MarianoDuk

    MarianoDuk Member Licensed User

    Hello to all, please apologize my english...

    I know maybe this is a silly question, but i am not using B4A too much, so i have some doubts...

    I want to generate a simple Qr Code in my Android phone, and i founded 2 ways of do it, one way is using Google Api... and the other way is the "Qr Generator" class, included in this post (, that has a B4J sample.

    - Wich are pros and cons of this 2 methods?

    - Both methods needs an internet connection to work?

    - Can somebody please teach me how to use this QrGeneratos class, to test it in B4A? There is a B4A example? (i dont know B4J)

    Thanks in advance!!!
  2. DonManfred

    DonManfred Expert Licensed User

    one uses an online api, one not.
    I would prefer the OnDevice-Solution. Means; i would use the B4X Class.
    You can use the same code in b4a.

    Dim qr As QRGenerator
        ImageView1.Bitmap = qr.Create(
    "QR with B4X!!!")
    Dim sb As StringBuilder
    For i = 1 To 20
    "QR with B4X!!!")
        ImageView2.Bitmap = qr.Create(sb.ToString)

    Attached Files:

    Erel and Jorge M A like this.
  3. MarianoDuk

    MarianoDuk Member Licensed User

    Thank you DonManfred!
    Ok, i will use that on-device solution, instead the online one.
    I currently use B4A 6.50, so when i opened the example it say i need a newer version, and dont recognizeb4xbitmap, b4xcanvas, etc.
    Wich B4A version do i need? The Newer versions of B4A will run the 6.50 apps that i made without problems? (they are all simple apps)
    Thanks again.
  4. Erel

    Erel Administrator Staff Member Licensed User

    Probably 7.3+ or 7.0+.

    MarianoDuk likes this.
  5. MarianoDuk

    MarianoDuk Member Licensed User

    Thanks Erel.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice