Hello!
I am trying to understand how to use a reflector but I am getting the error:
java.lang.NoSuchMethodException
I am trying to call the method getResolution to check the sensor resolution as described in http://developer.android.com/reference/android/hardware/Sensor.html#getResolution()
The code is below. PS is an initialized PhoneSensor object.
What am I doing wrong?
Thanks!
I am trying to understand how to use a reflector but I am getting the error:
java.lang.NoSuchMethodException
I am trying to call the method getResolution to check the sensor resolution as described in http://developer.android.com/reference/android/hardware/Sensor.html#getResolution()
The code is below. PS is an initialized PhoneSensor object.
B4X:
Dim r As Reflector
Dim f As Float
r.Target = PS
f = r.RunMethod("getResolution")
What am I doing wrong?
Thanks!