0

I did an application voice narration. But now I need stop the narration when user shakes the application. That means when the user shakes the phone i want to stop the narration. I did the voice narration part.

Gordon Linoff
  • 1,242,037
  • 58
  • 646
  • 786
samadi
  • 19
  • 1
  • 3
  • Use accelerometers. Look at this question and its answers http://stackoverflow.com/q/5271448/172277 – AsTeR Jul 28 '12 at 19:56
  • yah using accelerometers i tried to do.But how i stop the background narration.please give me a code. – samadi Jul 28 '12 at 20:03
  • Maybe just tell us how do you do the narration. – AsTeR Jul 28 '12 at 23:19
  • I did it by using this link http://www.javacodegeeks.com/2010/09/android-text-to-speech-application.html.I don't know how to put code as a comment.i change previous code little bit. – samadi Jul 31 '12 at 15:04
  • I did it by using this link http://www.javacodegeeks.com/2010/09/android-text-to-speech-application.html.I don't know how to put code as a comment.i change previous code little bit. thanx for the help – samadi Jul 31 '12 at 15:10
  • Edit your question rather than submitting updates as comment. – AsTeR Jul 31 '12 at 18:24
  • Still i can't do it.Please any one knows about the shake functionality – samadi Aug 05 '12 at 18:33
  • Do what we told you, improve your question's readability, you might found help. – AsTeR Aug 06 '12 at 10:02

0 Answers0