javafxports

Gluon Mobile ScrollPane Optimization

こ雲淡風輕ζ 提交于 2019-12-22 14:39:55
问题 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

Poor performance of javafx ported app

余生颓废 提交于 2019-12-22 09:49:07
问题 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 回答1: 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

Strange Gluon project structure for JavaFX - Android porting

霸气de小男生 提交于 2019-12-21 19:45:43
问题 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

How to analyze incoming message (JavaFX on Android)

。_饼干妹妹 提交于 2019-12-21 02:59:29
问题 I ported my JavaFX application to my Android device. I want my application to read incoming SMS messages and store it in a database. I found several questions here in StackOverflow but I don't know how to implement in a JavaFX approach. Please help! 回答1: These are the required steps to create and port a JavaFX application to an Android device, so you can track SMS messages, allowing: sending SMS to the number you type. Warning: This may by subjected to costs to your mobile account. reading

Javafxports and SQLite on Android Device

自古美人都是妖i 提交于 2019-12-19 10:28:07
问题 i will write a sample code with sqlite, that must work both ANdroid and IOS (and Desktop) Here is my build.gradle buildscript { repositories { jcenter() mavenCentral() maven { url 'https://oss.sonatype.org/content/repositories/snapshots' } } dependencies { classpath 'org.javafxports:jfxmobile-plugin:1.0.6' } } apply plugin: 'org.javafxports.jfxmobile' repositories { jcenter() mavenCentral() maven { url 'https://oss.sonatype.org/content/repositories/snapshots' } maven { url 'https://oss

Export JavaFX project to android

馋奶兔 提交于 2019-12-18 09:09:18
问题 I have a project made in JavaFX and want to run it in Android. I have used JavaFXports and have generated the needed apk. Also I managed to install the apk on an emulator. But I need the sources(the source code). In other words I want to be able to debug the project while it is running on the emulator. 回答1: To debug a JavaFXPorts/Gluon Mobile that you have created using the Gluon plugin for your IDE (NetBeans, IntelliJ or Eclipse), and that you have deployed to the Android emulator (using

How can I use a JavaFX activity in an Android project? (Kokos sample project)

匆匆过客 提交于 2019-12-18 09:08:59
问题 I'm trying to run the javafxports sample project Kokos as I want to use JavaFX components in an app built in Android Studio but can't get it to build properly, I can build all other samples but this mixed approach isn't working. When I build I just get a black screen and the error "java.lang.ClassNotFoundException: Didn't find class "org.javafxports.kokos.Main" on path: DexPathList[[zip file "/data/app/org.javafxports.kokos-2/base.apk"]" As far as I can tell, none of the kokos classes are

Gluon Sample Project with JDBC doesn't work on iOS Device

倖福魔咒の 提交于 2019-12-18 07:24:19
问题 i have simple code with Gluon + JDBC. I can connect this code on Android Device but not on Ipad. my build.gradle; buildscript { repositories { jcenter() } dependencies { classpath 'org.javafxports:jfxmobile-plugin:1.0.6' } } apply plugin: 'org.javafxports.jfxmobile' repositories { jcenter() } dependencies { compile 'mysql:mysql-connector-java:5.0.2' iosRuntime 'mysql:mysql-connector-java:5.0.2' } mainClassName = 'com.mtt8.version15' jfxmobile { android { manifest = 'src/android

compile and build gluon mobile app for desktop

你说的曾经没有我的故事 提交于 2019-12-17 22:59:40
问题 we have desktopRuntime 'org.xerial:sqlite-jdbc:3.15.1' in gradle file. i build project but my zip file dont have this file in lib folder. how can i build project for desktop? my ide is netbeans. Thankful. 回答1: The problem with the distZip or jar gradle tasks is they miss to include desktop dependencies. When deploying to desktop you can change temporary desktopRuntime to runtime , so they will be included, as Ladislav Török suggests, but then you should undo the change so that dependency isn

Android “back” button vs Desktop “Escape” key

余生长醉 提交于 2019-12-17 21:12:18
问题 I am writing an app using JavafxPorts that I am planning on running on both Android and Desktop (PC). I am trying to keep my code as generic as possible. My question is... how can I support both the "back" button on Android and have it be equivalent to the "Escape" key on PC? Basically I want to bring up the menu when the back button is pressed on Android or if the Escape key is pressed on PC. Thanks! 回答1: JavaFXPorts already has support for the back button on Android: it is mapped to the