Onsensorchanged() Not Calling For Gyroscope Sensor
I'll preface this with saying I am completely new to Android development. Started this week kind of thing. So far, I only know how to do forms with textboxes/buttons/that kind of t
Solution 1:
The reason it is not firing is because you did not register for callbacks for your given activity when sensor changes occur. Refer here http://developer.android.com/reference/android/hardware/SensorManager.html .
Look at the onResume() portion of the sample, notice how its registering this (Activity) to be notified upon changes, through the callback provided by the interface SensorEventListener
Post a Comment for "Onsensorchanged() Not Calling For Gyroscope Sensor"