Johan Vos blogged about Java FX and Android

If you're interested in latest development in Java FX for Android read Johan's blog entry here. I feel also that some tooling support would help in this stage of the project. So far the gradle script shipped in a binary worked well but who wants to stick with a script forever, right? Looking at the current IDEs that support Android ( Eclipse ADT, Netbeans NBAndroid and Google's Android Studio ) the natural choice would be a new gradle build system. This is a build system that Google has chosen for the future. Unfortunately it is still in a quite rough state and doesn't allow fine grained setup which is essential for us. To be more specific a dex task doesn't have capability that old good ant task had and we can't fix an issue with "too many methods" error. Positive is that there's an issue filed on Android gradle build system so there's a chance that Google will fix that. Until that happens using ant seems to be the only solution. Thanks to Radim Kubacki former NetBeans guy who's the father of NBAndroid we might have a chance to extend NBAndroid plugin for Netbeans. Add a wizard for creating Java FX projects, properly bootstrap it with FX libraries and use all great tools that NBAndroid and NetBeans and SceneBuilder have for Java FX developers. I would really glad to see that happen in near future.
Comments:

Which approach is better?

a) add deploy to android to actual JavaFX Project
b) create new Android / JavaFX Project Type / Wizard

Posted by Sven Reimers on January 22, 2014 at 09:55 PM CET #

Right now I've chosen the option b. I've created a module with a new project wizard on top of existing NBAndroid. This is the simplest approach because the module just bootstraps javafx libraries at right places and updates necessary scripts or settings for a regular android project. This way I can reuse rich functionality of NBAndroid with minimum effort.
I haven't considered the option a) really. There would be necessary to add a new deployment type into fxpackager at first. Definitely this is a valid option worth to evaluate. If somebody wants to step in and help he would be welcome.

Posted by Tomas Brandalik on January 23, 2014 at 09:48 AM CET #

Since you have a working Ant task, you should be able to use (include, parameterize, and call) that from Android Studio since Gradle has very deep integration with Ant.

Posted by Dierk on January 23, 2014 at 01:10 PM CET #

Post a Comment:
  • HTML Syntax: NOT allowed
About

JavaFX is a Java GUI toolkit, partially developed from Prague, Czech Republic. The Prague team uses this blog to post articles, code samples and insights about the range of topics the team members specialize in. This includes JavaFX Scenegraph (javafx.scene.*), JavaFX Core libraries & animations, iOS port & Android port.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today