Skip to content
Snippets Groups Projects
Select Git revision
  • master default
  • maven-setup
  • lectures2021
  • lectures2020
  • antipatterns
  • issue-11-allow-user-to-enter-and-update-metadata-about-the-latlong-points
  • 8-add-pdf-export
  • issue-10-display-latlong-metadata-in-the-fx-ui
  • issue-9-LatLong-meta-data
  • 9-meta-informasjon-knyttet-til-latlong-objekter
  • issue-6-rest-api
  • feature/update-gitignore
  • lectures-2024
  • lectures-2021
  • 2019_materials
15 results

course-material

  • Clone with SSH
  • Clone with HTTPS
  • Gitpod Ready-to-Code

    Note that the badge links our own gitpod installation. If you're not a student at NTNU, please fork and use gitpod.io instead.

    JavaFX on Android using GraalVM and Gluon's client-maven-plugin

    This branch allows you to build a native Android application using GraalVM and Gluon's client-maven-plugin. However, if you code inside gitpod you cannot debug through the USB connection, so installing and running must be done locally:

    • Configure gitpod to use a docker image with the last graalvm and set it as default
    • Code your application and provide build instructions according to gluons documentation
    • Run mvn -Pandroid package client:build client:package to build the Android application
    • Download the aarch64-android folder in target/client (you get a tar file). I think you could do with a bit less, but I haven’t experimented with minimising the download.
    • Clone your project onto your mac and untar the aarch64-android.tar file into target/client so you get the same/necessary build state as in gitpod
    • Connect your phone to the USB port and ensure it enters debug mode and run mvn -Pandroid client:install client:run
    • The app should open on your phone and you’ll see lots of debug output from it in the console