qrCreate with 2 lines on Android >= 11

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
trevix
Posts: 950
Joined: Sat Feb 24, 2007 11:25 pm
Location: Italy
Contact:

qrCreate with 2 lines on Android >= 11

Post by trevix » Tue Nov 15, 2022 12:13 pm

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?
Trevix
OSX 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>

Post Reply

Return to “Getting Started with LiveCode - Experienced Developers”