Win a copy of Python Continuous Integration and Delivery this week in the Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Devaka Cooray
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Tim Holloway
  • Claude Moore
  • Stephan van Hulst
Bartenders:
  • Winston Gutkowski
  • Carey Brown
  • Frits Walraven

Creating a apk from jar.  RSS feed

 
Master Rancher
Posts: 1161
18
Firefox Browser Hibernate IntelliJ IDE Java MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Android studio's ide is based on intelij, they mainly use java as programminglanguage and layout is defined in xml.
I'm not that comfortable in android studio, read as have litle to no experience. I remember that I once during a jQuerry tutorial made an android app from scratch without ever using android studio, it was solely in jQuerry and the I used an guthub project of which I forgot the name, I'm talking about like 6/7y ago, to compile everything to an apk.
Is there a way for me to make my app in springboot, use javaFx as frontend and then compile everything to an apk instead of a jar?
Or is that poor design?
 
Rancher
Posts: 3915
45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java FX won't work on an Android device.
It has its own gui framework.
 
Daniel Demesmaecker
Master Rancher
Posts: 1161
18
Firefox Browser Hibernate IntelliJ IDE Java MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Based on JavaFxPorts and the kokos sample, you can add JavaFX to an Android project created with Android Studio, and you will be able to run a JavaFX scene inside an Android fragment. If you able to run javaFx in an app created by androidstudio, you should be able to use it in an androidApp that isn't created with android studio too
 
Saloon Keeper
Posts: 5279
143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That sample you linked to has a Gradle build file - you should be able to adapt that to your needs without using Android Studio.
 
Daniel Demesmaecker
Master Rancher
Posts: 1161
18
Firefox Browser Hibernate IntelliJ IDE Java MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Every program created in android studio has a gradlebuildfile.
I never used gradle, how big are the differences with maven?
Or is that a whole new question?
 
Tim Moores
Saloon Keeper
Posts: 5279
143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That is a new question Gradle is the standard way to build apps for Android. If you're serious about Android development, you need to become familiar with Gradle anyway. It is conceptually similar to Maven, what with dependency management and all, but the syntax is different - no more XML.
 
Daniel Demesmaecker
Master Rancher
Posts: 1161
18
Firefox Browser Hibernate IntelliJ IDE Java MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So no mather what, if I want to create an apk from my jar I have to build my javaproject using gradle?
 
Tim Moores
Saloon Keeper
Posts: 5279
143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That being the other standard way of building Android apps besides Android Studio, yes. Doesn't the JavaFxPorts documentation talk about that?
 
Dave Tolls
Rancher
Posts: 3915
45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Daniel Demesmaecker wrote:Based on JavaFxPorts and the kokos sample, you can add JavaFX to an Android project created with Android Studio, and you will be able to run a JavaFX scene inside an Android fragment.



Crikey.
You learn something new every day.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!