1. Check out our companion app, Forums for Android! Download from Google Play

How to handle sensor-Accelerometer

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

  1. pasi_lnt

    pasi_lnt Member
    Thread Starter
    25

    Dec 7, 2009
    6
    0
    25
    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
    63

    Dec 11, 2009
    495
    43
    63
    keepin up with the jones'
    at your house when your not there
    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
    36

    Dec 10, 2009
    135
    9
    36
    Male
    LEO
    Columbus, OH
    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...