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

Comments

  1. 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.

    ReplyDelete
  2. I 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.
    I 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.

    ReplyDelete
  3. TMotionSensor doesn't use any FMX units, so it should still work in a service. Perhaps you're including something else?

    ReplyDelete
  4. I will try it again, but just after drop de comp, compile the service crash

    ReplyDelete

Post a Comment