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/commonsguy
http://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