SpeechToText on Shake of phone not working properly
<p>In my application,i want to use TextToSpeech when users shakes the phone. I have handled shaking of phone successfully using-</p>

<p><a href="http://stackoverflow.com/questions/2317428/android-i-want-to-shake-it">Android: I want to shake it!</a></p>

<p>But problem came when i intigrated TextToSpeech with this code. </p>

<p>Tried this- <a href="http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/app/TextToSpeechActivity.html" rel="nofollow">http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/app/TextToSpeechActivity.html</a></p>

<p>It gave me no error but can't hear speech when tried in real device.</p>

<p>Also tried using this code:</p>

<p><a href="http://www.javacodegeeks.com/2010/09/android-text-to-speech-application.html" rel="nofollow">http://www.javacodegeeks.com/2010/09/android-text-to-speech-application.html</a></p>

<p>But it gives me force close in real device so i can't get idea about error. I can't test shaking on immulator so can't find out even there.</p>

<p>Any help is appriciated.</p>

<p>Thanks.</p>
