change view with onSensorChanged result
- by tipu
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.