[android-developers] How to call Text-To-Speech in background? (android.speech.tts API = 2.1+)

2011-01-31 Thread aellis
Hi all, I want to write a simple app to read out SMS messages from my phone -- I also want an ON/OFF setting which can be set through an activity. The idea is that the activity is only launched to configure the shared preference of ON/OFF. A BroadcastReceiver or something similar which is in

Re: [android-developers] How to call Text-To-Speech in background? (android.speech.tts API = 2.1+)

2011-01-31 Thread Kostya Vasilyev
31.01.2011 11:42, aellis ?: I have written a BroadcastReceiver which receives the SMS_RECEIVED intent and unpacks the data, but when I try to create an instance of the TextToSpeech class I get an exception saying that a service can't be started/bound from a BroadcastReceiver. I