Hi All,
I making one application which is useful for blind people. My application demonstrates call initialization ans sending sms by voice recognition.
Here I am facing one problem , After launching the application I want to start the voice recognition automatically by shaking the G1 device twice, for this I have used sensor API accelerometer.
In sensors we have two call back methods
1.onSensorChanged()
2.onAccuracyChanged()
Problem here is as soon as we initialize the sensor manager object it starts to call onAccuracyChanged method continuously. And I don't know how to handle it. Here I want to generate one event after shaking the device twice.
Please help me to come out from this problem. If any suggestions also would be helpful for me
Thanks in advance
I making one application which is useful for blind people. My application demonstrates call initialization ans sending sms by voice recognition.
Here I am facing one problem , After launching the application I want to start the voice recognition automatically by shaking the G1 device twice, for this I have used sensor API accelerometer.
In sensors we have two call back methods
1.onSensorChanged()
2.onAccuracyChanged()
Problem here is as soon as we initialize the sensor manager object it starts to call onAccuracyChanged method continuously. And I don't know how to handle it. Here I want to generate one event after shaking the device twice.
Please help me to come out from this problem. If any suggestions also would be helpful for me
Thanks in advance