Use both JavaFx + Acitivity on Android -


so, in project, i'm merging few pieces of code, written earlier, 1 application. have :

  • some android activities (i.e. maps activity, login activity)
  • some javafx controls / forms (used before on windows client).

now, reuse javafx forms on android application, still able load previous android activities on button click or sth.

is there way, achieved ? greetings

if want merge javafx , android projects, should have @ javafxports project.

you developing javafx project deployed both in desktop , on mobile platforms.

for that, need include 1 single plugin on build.gradle:

apply plugin: 'org.javafxports.jfxmobile' 

for starters, may consider using gluon's plugin netbeans, create javafx project can add sources: add existing javafx sources main folder, , add android activities android folder.

you have adapt android activities run on javafx thread fxactivity.getinstance().

have @ post sample of that.

you may have @ gluon charm down library, can added project, interact native services, gps.

keep in mind android runs dalvik vm, won't able use java 8 new features (streams).


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -