gluon

How to generate qr code with Image overlay in Gluon?

旧街凉风 提交于 2021-02-10 22:17:16
问题 I want to generate QR CODE which have to put logo in the center. I have check the zxing library and I did it with a Java application by reading this code (How to generate QR code with logo inside it?). But as I know we can't use swing in android/ios. So how to deal with this ? 回答1: Based on the link you are referring, the accepted answer pointed to this post, where you can see that the trick to generate a QR that allows hiding its center part without affecting its readability by a QR scanner,

How to generate qr code with Image overlay in Gluon?

╄→尐↘猪︶ㄣ 提交于 2021-02-10 22:06:14
问题 I want to generate QR CODE which have to put logo in the center. I have check the zxing library and I did it with a Java application by reading this code (How to generate QR code with logo inside it?). But as I know we can't use swing in android/ios. So how to deal with this ? 回答1: Based on the link you are referring, the accepted answer pointed to this post, where you can see that the trick to generate a QR that allows hiding its center part without affecting its readability by a QR scanner,

OpenJFX 16ea on Pi 3 throws UnsatisfiedLinkError for libprism_es2_monocle.so: libGLESv2.so

橙三吉。 提交于 2021-02-10 16:15:27
问题 I try to use a JavaFX application on a Raspberry Pi 3 B+ with a small display connected to the display port. But this throws an error on startup of the application. Maybe first some quick questions to get started: Is the display port supported by JavaFX? Because this is the first time I use it instead of HDMI. Or is OpenJFX 16ea only for Raspberry Pi 4? I downloaded latest openjfx from https://gluonhq.com/products/javafx/. This is my startup command to run the (Maven) compiled application:

OpenJFX 16ea on Pi 3 throws UnsatisfiedLinkError for libprism_es2_monocle.so: libGLESv2.so

本秂侑毒 提交于 2021-02-10 16:04:47
问题 I try to use a JavaFX application on a Raspberry Pi 3 B+ with a small display connected to the display port. But this throws an error on startup of the application. Maybe first some quick questions to get started: Is the display port supported by JavaFX? Because this is the first time I use it instead of HDMI. Or is OpenJFX 16ea only for Raspberry Pi 4? I downloaded latest openjfx from https://gluonhq.com/products/javafx/. This is my startup command to run the (Maven) compiled application:

Java - Cross-platform filepath

我与影子孤独终老i 提交于 2021-01-29 20:18:51
问题 I'm trying to develop a cross-platform application that works on Desktop and Android as well using JavaFX and Gluon. At runtime my code creates a serialized file in my resource folder. I also need to read and write serialized data from/to it. I managed to work it on desktop, but not on android. Because it have a different file structure I guess. That is why I try to get the file path dynamically. Existing resource files, which are created before runtime (and not modified) seems to works fine

SQLite on Android via JavaFX and Gluons client-maven-plugin

可紊 提交于 2021-01-29 14:10:48
问题 I am trying to get a JavaFX application, which uses SQLite, running on Android via Gluons client-maven-plugin but for the library with the native part of SQLite I only get an UnsatisfiedLinkError. The app as such runs fine on Android and even works perfectly with SQLite on any desktop platform, so I think my general setup is ok. In this context I wonder whether linking with shared libraries contained in a JAR file is supported at all for Android? which architecture is the right one for

Start specific view of Gluon App from a notification

て烟熏妆下的殇ゞ 提交于 2021-01-29 01:49:42
问题 I set up an alarm to show a corresponding Notification . The PendingIntent of the Notification is used to start the Gluon App main class. To show a View other than the homeView, I call switchView(otherView) in the postInit method. OtherView is shown, but without AppBar . While it's possible to make the AppBar appear, I wonder if this is the right approach. @Override public void postInit(Scene scene) { // additional setUp logic boolean showReadingView = (boolean) PlatformProvider.getPlatform()

Start specific view of Gluon App from a notification

有些话、适合烂在心里 提交于 2021-01-29 01:41:11
问题 I set up an alarm to show a corresponding Notification . The PendingIntent of the Notification is used to start the Gluon App main class. To show a View other than the homeView, I call switchView(otherView) in the postInit method. OtherView is shown, but without AppBar . While it's possible to make the AppBar appear, I wonder if this is the right approach. @Override public void postInit(Scene scene) { // additional setUp logic boolean showReadingView = (boolean) PlatformProvider.getPlatform()

Start specific view of Gluon App from a notification

[亡魂溺海] 提交于 2021-01-29 01:40:14
问题 I set up an alarm to show a corresponding Notification . The PendingIntent of the Notification is used to start the Gluon App main class. To show a View other than the homeView, I call switchView(otherView) in the postInit method. OtherView is shown, but without AppBar . While it's possible to make the AppBar appear, I wonder if this is the right approach. @Override public void postInit(Scene scene) { // additional setUp logic boolean showReadingView = (boolean) PlatformProvider.getPlatform()