B4J Question Tutorial xui views dialog InputBox does not work.

vecino

Well-Known Member
Licensed User
Longtime User
Hi, I'm trying to use XUI views, which looks very interesting, but I downloaded the example and it doesn't work (B4J).
https://www.b4x.com/android/forum/threads/b4x-input-dialogs-with-xui-views.101197/
As soon as I press one of the buttons, it's always a mistake:
The only button that works is "Custom"

 

agraham

Expert
Licensed User
Longtime User
I see this too in the unmodified B4JDialogs example. And once a dialog (except Custom) is displayed pressing a key causes a further exception and kills the app. Happens on Java 8, OpenJDK11 and OpenJDK14.
B4X:
b4xdialog._getbutton (java line: 340)
java.lang.NumberFormatException: empty String
    at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1842)
    at sun.misc.FloatingDecimal.parseDouble(FloatingDecimal.java:110)
    at java.lang.Double.parseDouble(Double.java:538)
    at anywheresoftware.b4a.BA.ObjectToNumber(BA.java:395)
    at b4j.example.b4xdialog._getbutton(b4xdialog.java:340)
    at b4j.example.b4xdialog._setbuttonstate(b4xdialog.java:493)
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…