Thank you Dianne,
but still I have a problem! According to Android 2.2 compatibility
document, device should deliver the accelerometer events in 50Hz or
faster. I am working on HTC Desire, and I just get events each 0.2 sec
which means 5Hz.
What is the problem? How can I reach to 50Hz sampling rate? Is there
any problem with the device? I also checked the Samsung Galaxy S, and
it was worse than HTC Desire.
Regards.
Babak
P.S. If I just want to develop for my own phone, is it possible to
reach the accelerometer data faster?
On Nov 17, 4:16 am, Dianne Hackborn <
hack...@android.com> wrote:
> You can't, currently the only API is the listener-based Java API.
>
> Permissions should not allow applications to directly open the underlying
> devices (heck on some hardware the data may not come from an input device at
> all).
>
>
>
> On Sat, Nov 13, 2010 at 12:18 PM, babak <
bnade...@gmail.com> wrote:
> > Hello All,
>
> > I am looking for a way to get data of sensors (especially
> > Accelerometer) rapidly without using the listener base approach. I am
> > looking for it in Android NDk, but I can not find any lib that I can
> > use!
> > Actually, I am totally beginner in NDk, so anybody knows where can I
> > find the list of all libraries which are available with Android NDk?
>
> > Thank you in advance
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "android-ndk" group.
> > To post to this group, send email to
andro...@googlegroups.com.
> > To unsubscribe from this group, send email to
> >
android-ndk...@googlegroups.com<
android-ndk%2Bunsu...@googlegroups.com>
> > .
>
hack...@android.com