1. Introducing Channels - a new way to chat with other Android users!
    Dismiss Notice

How to handle sensor-Accelerometer


Last Updated:

  1. pasi_lnt

    pasi_lnt Member This Topic's Starter

    Joined:
    Dec 7, 2009
    Messages:
    6
    Likes Received:
    0
    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
     

    Advertisement
  2. jree

    jree Well-Known Member

    Joined:
    Dec 11, 2009
    Messages:
    495
    Likes Received:
    43
    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

    Joined:
    Dec 10, 2009
    Messages:
    135
    Likes Received:
    9
    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
     

Share This Page

Loading...