Android Question JavaObject Error

gerredtor

Active Member
Licensed User
Hello with this code:

B4X:
    Dim jo As JavaObject
    jo.InitializeStatic("java.util.Locale")
    Log(jo.RunMethod("getDisplayLanguage()", Null))

i become this error:

B4X:
java.lang.RuntimeException: Method: getDisplayLanguage() not found in: java.util.Locale

but this is a method of locale
 

DonManfred

Expert
Licensed User
Longtime User
the method is
getDisplayLanguage

not

getDisplayLanguage()
 
Upvote 0

gerredtor

Active Member
Licensed User
with getDisplayLanguage i become this error:

B4X:
java.lang.IllegalArgumentException: Expected receiver of type java.util.Locale, but got java.lang.Class<java.util.Locale>
 
Upvote 0
Top