Hi
How solv receiver type from JavaObject
my code is
the response of compiled is
java.lang.IllegalArgumentException: Expected receiver of type android.device.ScanManager, but got java.lang.Class<android.device.ScanManager>
tanks
How solv receiver type from JavaObject
my code is
B4X:
Dim scan As JavaObject
'**************************************
' scan.InitializeStatic("android.device.ScanManager")
scan.InitializeNewInstance("android.device.ScanManager",Null)
Dim joOpen As JavaObject
Dim lOpen As Boolean
joOpen = scan.RunMethodJO("openScanner",Null)
lOpen = joOpen.as(Boolean)
the response of compiled is
java.lang.IllegalArgumentException: Expected receiver of type android.device.ScanManager, but got java.lang.Class<android.device.ScanManager>
tanks