Bildauswahl Javafx Android MobileJava

Java-Forum
Guest
 Bildauswahl Javafx Android Mobile

Post by Guest »

So wählen Sie ein Bild aus dem Android-Verzeichnis/Galerie im javafxmobile-plugin aus. Ich kann auf dem Android-Gerät keine Dateien wie Bilder auswählen. Wenn ich das Verzeichnis öffne, bleibt die App hängen und wird plötzlich geschlossen. Irgendwelche Hilfe???

Ich habe es bereits auf einem Android-Gerät mit der Javafx-Dateiauswahl && Verzeichnisauswahl versucht, aber nichts hat geholfen. Außerdem habe ich keinen hilfreichen Beitrag zum Stackoverflow

meiner build.gradle-Datei gefunden:

Code: Select all

buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'org.javafxports:jfxmobile-plugin:1.3.16'
}
}

apply plugin: 'org.javafxports.jfxmobile'

repositories {
jcenter()
maven {
url 'http://nexus.gluonhq.com/nexus/content/repositories/releases'
}
}

mainClassName = 'com.maqboolsolutions.directorychooserandroid.App'

ext.CHARM_DOWN_VERSION = "1.0.0"

dependencies {
compile "com.gluonhq:charm-down-common:$CHARM_DOWN_VERSION"
desktopRuntime "com.gluonhq:charm-down-desktop:$CHARM_DOWN_VERSION"
androidRuntime "com.gluonhq:charm-down-android:$CHARM_DOWN_VERSION"

compile 'com.airhacks:afterburner.mfx:1.6.3'
}

jfxmobile {
javafxportsVersion = '8.60.11'

android {
manifest = 'src/android/AndroidManifest.xml'

packagingOptions {
exclude 'META-INF/INDEX.LIST'
}

dexOptions {
javaMaxHeapSize "4g"
}
}
}

Code: Select all

.java
Codierung:

Code: Select all

@FXML
private void btnCooserOnAction(ActionEvent event) {
DirectoryChooser directoryChooser = new DirectoryChooser();

Stage primaryStage = (Stage) stackPaneRoot.getScene().getWindow();

File selectedDirectory = directoryChooser.showDialog(primaryStage);

if (selectedDirectory == null) {
lblPath.setText("No Directory selected");
} else {
lblPath.setText(selectedDirectory.getAbsolutePath());
}
}
App reagiert nicht. und nah...

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post