In my application,i want to use TextToSpeech when users shakes the phone. I have handled shaking of phone successfully using-
But problem came when i intigrated TextToSpeech with this code.
It gave me no error but can't hear speech when tried in real device.
Also tried using this code:
http://www.javacodegeeks.com/2010/09/android-text-to-speech-application.html
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.
Any help is appriciated.
Thanks.