1. Are you ready for the Galaxy S20? Here is everything we know so far!

How to handle sensor-Accelerometer

Discussion in 'Android Apps & Games' started by pasi_lnt, Dec 16, 2009.

  1. pasi_lnt

    pasi_lnt Lurker
    Thread Starter

    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
     


  2. jree

    jree Android Enthusiast

    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
     
  3. Coronach

    Coronach Well-Known Member

    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
     
Loading...

Share This Page

Loading...