My assumption, i'm not sure - 1. you need to move from that activity with finish()
@*Override * *public* *void* onPause() { *super*.onPause(); *try* { // Stop talking when we lose focus *if* (*tts* != *null*) { *tts*.stop(); ttsActive = *false*; } } *catch* (*Exception* e) { } } @*Override * *public* *void* onResume() { *super*.onResume(); // Create our text to speech object. *tts* = *new* *TextToSpeech*(*getApplicationContext*(), *this*); *Intent* i = *getIntent*(); *smsString* = i.getStringExtra("smsString"); *System*.out.println("from tts =" + *smsString*); *tts* = *new* *TextToSpeech*(*getApplicationContext*(), *this*); } @*Override * *public* *void* onDestroy() { *super*.onDestroy(); *try* { // We're closing down so kill it with fire. *if* (*tts* != *null*) { *tts*.shutdown(); *tts* = *null*; } // powerLock.release(); } *catch* (*Exception* e) { } } you need to call onPause() as above, may it will work. On Wed, Jul 4, 2012 at 1:50 PM, Deepa M <deepam8...@gmail.com> wrote: > > Sir,how to > 1. generate the wav file and use the MediaPlayer > 2. through media player you can pause and play from you desire position > > On Tue, Jul 3, 2012 at 11:18 AM, Deepa M <deepam8...@gmail.com> wrote: > >> Sir, >> i am using Second option >> in that i am not enable to pause particular position, >> I am using Buffer reader!!!! >> >> >> On Mon, Jul 2, 2012 at 6:50 PM, Juned Khan <jkhan6...@gmail.com> wrote: >> >>> >>> this may help you >>> http://stackoverflow.com/questions/6222823/text-to-speech-in-android >>> >>> Thanks >>> Juned Khan >>> >>>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Android Developers" group. >>> To post to this group, send email to android-developers@googlegroups.com >>> To unsubscribe from this group, send email to >>> android-developers+unsubscr...@googlegroups.com >>> For more options, visit this group at >>> http://groups.google.com/group/android-developers?hl=en >>> >> >> >> >> -- >> Thanks& Regards >> Deepa M >> >> >> > > > -- > Thanks& Regards > Deepa M > > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- Thanks & Regards Rakesh Kumar Jha Android Developer, Trainer and Mentor Bangalore Skype - rkjhaw (O) +918050753516 (R) +919886336619 -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en