added TextToSpeech to my activity and now my onDestroy is not called any more, bug?
Posted
by hermo
on Stack Overflow
See other posts from Stack Overflow
or by hermo
Published on 2010-04-13T07:17:59Z
Indexed on
2010/04/13
7:23 UTC
Read the original article
Hit count: 350
I added TextToSpeech to my app, following the guidelines in the following post:
http://android-developers.blogspot.com/2009/09/introduction-to-text-to-speech-in.html
and now my onDestroy is no longer called when the back button is pressed. I filed a bug report regarding this: http://code.google.com/p/android/issues/detail?id=7674
Figured i should also ask here if someone else has seen this, and found a solution?
It seems that it is the intent that causes the problem, i.e. the following:
Intent checkIntent = new Intent();
checkIntent.setAction(TextToSpeech.Engine.ACTION_CHECK_TTS_DATA);
startActivityForResult(checkIntent, MY_DATA_CHECK_CODE);
If I skip this intent, and just go ahead and create a tts-instance, it works fine. Any clues to what is wrong with this intent?
© Stack Overflow or respective owner