I recently got my JavaFX program to run on android without crashing, but it doesn't currently do anything. Here's a pastebin of the logcat output when the app is first opened (embedding it would get the question flagged as spam).
For reference the line 25492 25518 D GraalCompiled: Error! Icon file does not exist (Trying to read from 'com/testproject/res/icon')!
comes from the the code:
try {
InputStream is = Subspecies.class.getClassLoader().getResourceAsStream("com/testproject/res/icon.svg");
if(is==null) {
System.err.println("Error! Statistics icon file does not exist (Trying to read from 'com/testproject/res/statistics/health_icon')!");
}
healthString = Util.inputStreamToString(is);
healthString = SvgUtil.colourReplacement("HEALTH", PresetColour.BASE_PINK, healthString);
is.close();
} catch (IOException e) {
e.printStackTrace();
}
It feels like the issue is somehow related to an issue with permissions, but I have no idea how something like this could have happened. It also could have to do with the fact that the program wasn't originally written to be compiled to Android.
Thanks in advance for any help, and I'm sorry if I'm missing something obvious; it's taken a few weeks to get this thing to even be able to run without crashing and I'm almost out of patience.