r/JavaFX • u/srk- • Oct 09 '21
Can Javafx application be deployed to Android?
I am looking at options for developing mobile application, Javafx seems good for me.
However, I don't see much documentation on how we can deploy Javafx app to Android.
Any goodread links or articles or videos might help
5
4
u/makingthematrix Oct 10 '21
I'm experimenting with this idea: https://github.com/makingthematrix/scalaonandroid
These are examples of small apps written in Scala with JavaFX + Gluon Mobile and then compiled with GraalVM Native Image. You can ignore Scala - the same examples can be written in Java - but it's a very nice language 😀
0
Oct 10 '21
[deleted]
1
u/srk- Oct 10 '21
I read through it, haven't checked it practically, but I guess things have changed a lot since 2015(Thread date).
5
u/Phaestion Oct 10 '21
Check out Gluon Mobile: https://gluonhq.com/products/mobile/
Gluon is one of the big open source contributors for JavaFX these days.
Their solution uses GraalVM to compile to native for Android and also iOS. And looks like it is well supported.
They have a free tier, but it seems it includes a "nag screen", they have some free licenses for students and open source projects.
Have you looked at Compose? There is a desktop and an Android version. And in my opinion this is the future of Java desktop apps and most certainly Android apps.
They also have a Compose Multi Platform setup, but it's still quite new.