Hi,
I can only speak to question 2, but it seems like you'd want to also
listen for the SENSOR_ACCELEROMETER data, and then look for values
that are above a certain threshold, maybe something like:
if (sensor == SensorManager.SENSOR_ACCELEROMETER) {
float accel_mag = (values[0]*values[0]+valu
doing numerical integration over discrete samples, and the
sensors are fairly noisy).
Cheers,
Jordan Frank
On Mar 9, 4:45 pm, Anil wrote:
> Hi,
> I wondered if the accelerometer sense short and long motions.
> for example, not just a 3 milimeter movement, but also a 30 meter
> move.
>
Hi Brett,
That's an excellent question, which is probably why it's been asked
many times (including two days ago) and has been answered many times
(including two days ago). The answer is fairly involved, you have to
go to Google, search for something like "activate adp1 without sim
card", and the
to monitor the
accelerometer data.
Thank you,
Jordan Frank
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscr
4 matches
Mail list logo