Short answer: no, you can't read sensors directly. With some hacking steps and couple of weeks of hard work you might be able to duplicate Android's Sensors JNI with exactly the same (or even worse) performance which will work only on your super-rooted-hacked-one-of-a- kind phone. Why bother?
With respect to the second question: yes, you can, but the maximum speed is device (driver) dependent and sometimes could be too high for the device. I mean that reading sensors is not the final goal and you need to keep some CPU to process that data, right? Anyway, you need to start from reading Android documentation: http://developer.android.com/reference/android/hardware/SensorManager.html#registerListener(android.hardware.SensorEventListener, android.hardware.Sensor, int) On Nov 13, 12:24 pm, babak <[email protected]> wrote: > Hello all, > > I am looking for a way to get sensors' data ( especially > Accelerometer) directly without using Listener approach. Actually I > need to have the data really fast!!! > > I can not find any way to read sensor data by myself. Anybody knows > anything about it? > Is it possible to read data with more than 50Hz? > > Regards, > Babak -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

