[android-developers] Re: Read sensor value without using SensorEventListener
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 <mmur...@commonsware.com> wrote:
> No, you must use a SensorEventListener.
>
>
>
>
>
>
>
>
>
> On Sun, Jan 15, 2012 at 6:04 PM,ambi<ambi1...@gmail.com> wrote:
> > Any comments? Thanks.
>
> > On Jan 14, 9:24 am,ambi<ambi1...@gmail.com> 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 android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscribe@googlegroups.com
> > 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home