javafxports

How to use external Jars in javafxports-Application

妖精的绣舞 提交于 2019-12-08 03:02:28
问题 i write a javafx andoid application in netbeans with javafxports and gradle. I added the dependencies to gradel, but now i dont know how to add the jars to my project or to use it in my app-code. . . Do you know how i can us it? I tried searching the www for hours ... Ok i tried it but i dont get it ... I did exactly what you said but netbeans still says: package io.netty.bootstrap does not exist I created a folder unter src/android/ called libs and add my jar there ... Here are my

Gluon eclipse plugin - how to access the android SDK

社会主义新天地 提交于 2019-12-08 02:47:19
问题 I am wondering how to access the android sdk to use android specific code in the src/android folders of the created Gluon JavaFX project. I know that I can get the Android Context by using the FXActivity class. But I can not import that nor classes of the Android SDK (e.g. ActivityManager ). I am using Eclipse Mars with the newest Gluon Plugin and the Android SDK Plugin installed. 回答1: I just added android.jar and jfxdvk.jar to the Eclipse build path manually but that is probably not the way

How to request permissions during run time when using Gluon mobile environment?

安稳与你 提交于 2019-12-07 22:50:08
问题 I am new here and reason for that I don't know all rules of the site yet, sorry about that! I am building a Java application to Desktop and Android by using Gluon mobile plugin in Eclipse tool. I have variated code for Desktop and Android as described in an example (http://docs.gluonhq.com/samples/gonative/). So I have Android specific NativeService where I have a method to read files from external storage (that works). I have also studied how to request permissions on run time when using

gluon Mobile LocalNotificationsServices.class Not working

核能气质少年 提交于 2019-12-07 18:33:35
问题 Hi guys Am new to Android development using javafx . Am trying to create push notification on android using javafx (javafxports and gluon Mobile ) . My problem is that push-notification is not displaying as I did Expected. I got this idea from http://gluonhq.com/products/mobile/charm-down/ http://docs.gluonhq.com/charm/javadoc/4.2.0/com/gluonhq/charm/down/plugins/LocalNotificationsService.html#getNotifications-- here's the gradle.build file Below. buildscript { repositories { jcenter() }

How to request permissions during run time when using Gluon mobile environment?

我们两清 提交于 2019-12-06 13:17:11
I am new here and reason for that I don't know all rules of the site yet, sorry about that! I am building a Java application to Desktop and Android by using Gluon mobile plugin in Eclipse tool. I have variated code for Desktop and Android as described in an example ( http://docs.gluonhq.com/samples/gonative/ ). So I have Android specific NativeService where I have a method to read files from external storage (that works). I have also studied how to request permissions on run time when using native Android environment ( Storage permission error in Marshmallow ). I am able to request the

gluon Mobile LocalNotificationsServices.class Not working

拥有回忆 提交于 2019-12-06 06:02:10
Hi guys Am new to Android development using javafx . Am trying to create push notification on android using javafx (javafxports and gluon Mobile ) . My problem is that push-notification is not displaying as I did Expected. I got this idea from http://gluonhq.com/products/mobile/charm-down/ http://docs.gluonhq.com/charm/javadoc/4.2.0/com/gluonhq/charm/down/plugins/LocalNotificationsService.html#getNotifications-- here's the gradle.build file Below. buildscript { repositories { jcenter() } dependencies { classpath 'org.javafxports:jfxmobile-plugin:1.2.0' } } apply plugin: 'org.javafxports

Gluon Mobile ScrollPane Optimization

↘锁芯ラ 提交于 2019-12-06 05:22:09
I'm trying to implement a JavaFX ScrollPane with a nested VBox, and I'm experience a strange issue when scrolling too fast in mobile. The issue is that if I scroll in smaller yet quick upward gestures, the scrollpane stalls for a half a second first, and then continues. It gets laggy in random swipe gestures. Is there anyway I can optimize this? This doesn't happen on the desktop version, so I'm guessing it may be a limitation of my phone and JavaFX itself. This issue is more evident when I set a background image for the scroll pane viewport. Here is some sample code for a View: public class

Poor performance of javafx ported app

梦想与她 提交于 2019-12-06 00:43:35
I just ported using gradlew into android a sample netbeans javafx project called "PuzzlePieces". The app has got soo poor performance, what can cause that? My device: LG E975, 4.4 kitkat José Pereda This question contains some possible reasons why performance on an Android device could be poor in terms of what one could expect based on how the app runs on desktop. Anyway, there is a quick win in "PuzzlePieces", and it is related to the CSS point mentioned in that question. The Desk class adds this inline styling: Desk(int numOfColumns, int numOfRows) { setStyle("-fx-background-color: #cccccc;

Strange Gluon project structure for JavaFX - Android porting

妖精的绣舞 提交于 2019-12-04 12:23:56
The gradle build of Gluon plugin (in Netbeans 8.0.2) for porting JavaFX to Android creates the following directory structures: Source Packages [Java] Android/Java Packages Desktop/Java Packages Ios/Java Packages Each of these directories contain java packages inside them. Generally Gluon build would create the "main" class for us in one java package inside "Source Packages" directory [the name Packages with "Source Packages" might be misleading since it is not a Java package, its just a file system directory]. This main class extends Javafx Application class and thus is the entry point into

JavaFXPorts: Is this correct behavior for javafx.scene.control.ComboBox on Android device?

拥有回忆 提交于 2019-12-04 07:00:32
问题 After selecting item in ComboBox, then this selected item is not displayed in ComboBox - only Android device, on desktop is it ok. Compare this two screenshots: [On desktop when item "Option 2" is selected] and [On Android device when item "Option 2" is selected] I am using JavaFXPorts 8.60.8. 回答1: Based on this question, and giving that on your bug report you mention you are using a Samsung device, there is a known issue in some Samsung devices where the touch event handling done in