Android Question Launching a QR code generator on Android

Lakhtin_V

Active Member
Licensed User
Longtime User
Hello, I found several working examples of a QR generator on this forum, but they are written for the Java version for Windows.
cross-platform-qr-code-generator
But they discuss this topic as if it easily works on Android. I tried to copy the entire generator class from the Java version to Android, added the jFX library to Android. BUT I see that some objects related to byte conversion and displaying a picture do not work in the Android version.
1749654105104.png

It seems to me that these objects can somehow be replaced by means of the Android version, but I do not know how. In fact, the problem is that I did not find an example of a QR generator made for the Android version
1749654249890.png

How can I correct the code of this example and what libraries to add so that it could work? See the QR code inside the panel or label?
 

teddybear

Well-Known Member
Licensed User
But they discuss this topic as if it easily works on Android. I tried to copy the entire generator class from the Java version to Android, added the jFX library to Android. BUT I see that some objects related to byte conversion and displaying a picture do not work in the Android version.

It seems to me that these objects can somehow be replaced by means of the Android version, but I do not know how. In fact, the problem is that I did not find an example of a QR generator made for the Android version

How can I correct the code of this example and what libraries to add so that it could work? See the QR code inside the panel or label?
You can not add jFX to B4A, it is only for B4J. just need to add XUI and B4XCollections, it should work
 

Attachments

  • QRCode.zip
    13.3 KB · Views: 74
Upvote 0

aeric

Expert
Licensed User
Longtime User
You can also check my library
 
Upvote 0

Lakhtin_V

Active Member
Licensed User
Longtime User
You can not add jFX to B4A, it is only for B4J. just need to add XUI and B4XCollections, it should work
Thanks for the advice, but the problem is that after I activate the XUI library it starts to conflict with the methods that I constantly use to format lists, labells and so on. I would not like to rewrite the entire application interface based on the features of XUI. How can I adapt this example to the needs of classic B4A.
 
Upvote 0

teddybear

Well-Known Member
Licensed User
Thanks for the advice, but the problem is that after I activate the XUI library it starts to conflict with the methods that I constantly use to format lists, labells and so on. I would not like to rewrite the entire application interface based on the features of XUI. How can I adapt this example to the needs of classic B4A.
The example has been attached at post#2. I don't know what that conflicting with the methods is, you'd better post a small project.
 
Upvote 0
Top