Hi people!
Hi people!
What is the JNI wrapper to get the accelerometer info? I am developing an Android service and was able to use a wrapper to avoid TLocation and it works fine, but I would need the motion sensor too. Any clue?
Thanks
What is the JNI wrapper to get the accelerometer info? I am developing an Android service and was able to use a wrapper to avoid TLocation and it works fine, but I would need the motion sensor too. Any clue?
Thanks
What info exactly are you after? Most of the calls are in Androidapi.Sensor, e.g: ASensor_getName, ASensor_getVendor etc. TMotionSensor is the component that accesses these calls.
ReplyDeleteI can't use TMotionSensor with an Android Service. Same way I moved from TLocation to a direct wrapper. If Androidapi.Sensor includes a activity so the app will crash, such what happens with TLocation when using with services.
ReplyDeleteI will study the unit and see what have there, as I am already know that TMotionSensor uses that unit, but so far all JNI call as name as AndroidApi.JNI.* so my question.
TMotionSensor doesn't use any FMX units, so it should still work in a service. Perhaps you're including something else?
ReplyDeleteI will try it again, but just after drop de comp, compile the service crash
ReplyDelete