change view with onSensorChanged result
Posted
by tipu
on Stack Overflow
See other posts from Stack Overflow
or by tipu
Published on 2010-06-09T06:42:11Z
Indexed on
2010/06/09
14:52 UTC
Read the original article
Hit count: 322
I have a view, set by setContentView(new CompassView(this));
I have the onDraw
and update
methods filled out.
What I need to do with the view CompassView
is update my view with the new data at the end of the call in the onSensorChanged
method.
The methods I have to fill out, I believe, are the surfaceChanged
and surfaceCreated
. They are normally using threads which takes care of the update
and onDraw
calls but I removed the thread because when the thread was enabled, in the infinite while loop I was never getting any azimuth value what so ever.
© Stack Overflow or respective owner