QR Code Generator problem

It doesn't work unfortunately; i still have the same QR Code !

1 Like

What do you mean?

1 Like

In summary; my app calculates dimensions and at the end I have to generate a QR Code which contains these calculated dimensions. However, whatever the dimensions obtained, I always get the same QR Code diagram/layout (sorry, my English is a little bad) (same diagram/layout whatever value = 100 or 420 or 900 ... etc). You understand ?

1 Like

Show an example of the data you place in your Label13.Text

1 Like

In the "DESIGNER" part, Label13 contains nothing (void), i don't know if it's what you're asking for ?

1 Like

When you run the app to generate a QR Code.

Also do you get the same problem when using Companion and Compiled ?

1 Like

I don't use Companion, i directly use the app in my phone. Whatever is the result, it's always the same representation/layout of the QR Code.

1 Like

If you are talking about orientation then it will be automatically adjusted according to hight and width.
For example if height is greater than width then image will be rotated 90 degrees.

That's obvious if you will not change the text.

No, i'm not talking about the hight and width, i'm talking about THE RESULT (i called it "value" to explain to you).

You talked about "changing the text", what do yo mean ? how can i relate a changing text to a changing QR Code ?

If you set your label to 100 you get:
image
If you set your label to 200 you get:
image

The output qr codes are different

Look what i'm talking about (different values, same QR Code) :


You appear to be setting the text of the the file path for the qr code to your qr code (so you get the filepath returned when you scan the qrcode, not the data).

A scan of your qr code returns this:
image

Set the data to the text socket in the extension block, not the file path

1 Like

Sorry, i didn't get it 100%. Here are the blocks, can you explain me from there, please (what do i have to change) ?

Without you showing us (which I did ask for), the content of Label13.text appears to be the file path to the qr code, therefore given that remains the same, you will get the same qr code each time.

I have to remove "Get filePath" and instead replacing it with "Get Label13.Text" ???

Remove get Label13.Text from your extension block, and replace it with the value you want in the qr code

1 Like

Seems to be working !
I hope that i won't have another problem :slight_smile: Thx !

Did I say something else? :roll_eyes:
How can you expect the extension to generate different QR codes for same content ?

Please consider using the companion app together with the Do it feature

use Do it to debug your blocks, see also tip 4 here App Inventor: How to Learn | Pura Vida Apps
see also Live Development, Testing, and Debugging Tools
Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by icon24 Taifun.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.