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
 

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
Cookies are required to use this site. You must accept them to continue using the site. Learn more…