This code:
and this:
and this:
do not work.
Since I'm not a Java expert, I do not know if all the examples are wrong or if inline java has a bug.
Thanks
B4X:
#If JAVA
import java.util.Locale;
public Locale getNewLocale(String Language, String Country) {
return new Locale(language, country);
}
#End If
and this:
B4X:
#If JAVA
import java.text.NumberFormat;
public Double NumberParse(String Value) {
return NumberFormat.getInstance().parse(Value).doubleValue();
}
#End If
and this:
B4X:
#If JAVA
import java.text.NumberFormat;
public Integer NumParse() {
NumberFormat nf = NumberFormat.getInstance();
Number myNumber = nf.parse("1.5");
return 0;
}
#End If
do not work.
Since I'm not a Java expert, I do not know if all the examples are wrong or if inline java has a bug.
Thanks
Last edited: