• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

How to handle sensor-Accelerometer

pasi_lnt

Lurker
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
 
As good as an idea as it is, I dont think that blind people will be buying a touchscreen phone in the near future. Good luck to you and I hope it does succeed though
 
Well, blind people may use a touchscreen phone IF you could get the homescreen and subsequent screens to give haptic feedback for which icon they're currently touching.

Sorry, no accelerometer assistance.

Mike
 
Back
Top Bottom