PhilipK Member Licensed User Longtime User Apr 23, 2016 #1 Hi The SensorManager (SensorExtender library) has a small number of functions. How do you call other helper functions available such as: getRotationMatrixFromVector or methods: getDefaultSensor Thanks for your help!
Hi The SensorManager (SensorExtender library) has a small number of functions. How do you call other helper functions available such as: getRotationMatrixFromVector or methods: getDefaultSensor Thanks for your help!
Erel B4X founder Staff member Licensed User Longtime User Apr 24, 2016 #2 Code: Sub GetRotationMatrixFromVector (R() As Float, RotationVector() As Float) Dim jo As JavaObject jo.InitializeStatic("android.hardware.SensorManager").RunMethod("getRotationMatrixFromVector", Array(R, RotationVector)) End Sub How is getDefaultSensor different than PhoneSensor.Initialize? Upvote 0
Code: Sub GetRotationMatrixFromVector (R() As Float, RotationVector() As Float) Dim jo As JavaObject jo.InitializeStatic("android.hardware.SensorManager").RunMethod("getRotationMatrixFromVector", Array(R, RotationVector)) End Sub How is getDefaultSensor different than PhoneSensor.Initialize?
PhilipK Member Licensed User Longtime User Apr 24, 2016 #3 Erel, That's great, as usual. Thank you. I randomly picked 'getDefaultSensor' to symbolise gaining access to all, in the SensorManager. Upvote 0
Erel, That's great, as usual. Thank you. I randomly picked 'getDefaultSensor' to symbolise gaining access to all, in the SensorManager.