Thanks Mark. I understand that SensorEventListener.onSensorChanged()
is the only way right now to read the value of sensor. But why is it
that way? I mean isn't there a need for a method that can give the
sensor value at some instant rather than when the value changes? Just
a thought.

Regards,
Ambi.

On Jan 16, 12:13 am, Mark Murphy <[email protected]> wrote:
> No, you must use a SensorEventListener.
>
>
>
>
>
>
>
>
>
> On Sun, Jan 15, 2012 at 6:04 PM,ambi<[email protected]> wrote:
> > Any comments? Thanks.
>
> > On Jan 14, 9:24 am,ambi<[email protected]> wrote:
> >> Hi,
>
> >> Is there a way to read the sensor value without using the
> >> SensorEventListener? My understanding is that the
> >> SensorEventListener.onSensorChanged() method will tell me the sensor
> >> value but only when the value changes. I want to read the sensor value
> >> when the user clicks a button.
>
> >> Thanks,
> >>Ambi.
>
> > --
> > 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
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to Android Development_ Version 3.7 Available!

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

Reply via email to