Page 1 of 1

qrCreate with 2 lines on Android >= 11

Posted: Tue Nov 15, 2022 12:13 pm
by trevix
For what I have experienced, drawing a QRcode containing 2 lines of text on Android < 11 works fine.
like for example:

Code: Select all

constant kECC = "M" --The error correction level
constant kSize = 3 
put "WIFI:S:NameOfWifi;T:WPA;P:WiFiPassword ;H:false" & cr &
"Text:_Campo A_SomeText_SomeMoreText _WPA_192.168.1.100"
qrCreate "!", tData, kECC, kSize
put the result into tData
delete the line 1 of tData
return tData
On Android 11 and 12, in order to have the QRcode drawing appear on an image control, I have to add a "cr" at the end of the last line of tData.
Anyone incurred in this difference of behaviour?