JavaFxPorts TextField Issue - Android Keyboard wont function

后端 未结 1 1849
误落风尘
误落风尘 2021-01-28 00:59

I developed a simple javafx application to be ported in Android Environment, however I cant type any characters in the TextField. I guess its a bug, how to fix this one?

1条回答
  •  生来不讨喜
    2021-01-28 01:10

    Assuming that CustomTextField is just a custom TextField, this is a known issue, not related to the CustomTextField itself, given that it works in other device.

    If you debug it:

    ./adb logcat -v threadtime
    

    you surely find an exception that explains the issue: a StackOverFlow exception.

    On older devices it can be solved adding this: create a java.custom.properties file, and include in it this property:

    monocle.stackSize=128000
    

    You may also include this one:

    monocle.platform=Android
    

    (it will be soon included by default in the next version)

    Put the file at the root of your classpath, e.g. in the folder src/android/resources of your project.

    Build and deploy the project on your mobile and check again.

    0 讨论(0)
提交回复
热议问题