[android-developers] Re: Start TTS from broadcast receiver

2009-07-10 Thread Dianne Hackborn
*sigh* That solution you were given is utterly broken -- the restriction placed on the context is to HELP people from doing stuff that is not actually going to work all of the time (since your hosting process can be killed any time after onReceive() returns, before onBind() comes back). So this p

[android-developers] Re: Start TTS from broadcast receiver

2009-07-10 Thread nuno
Thanks Dianne, I tried a solution from John on the TTS group which worked well but I soon realised that trying to the stuff I need on the BR is just a lot more work and stupid :) I am now writing a big post-it on my screen with: "Broadcast Receivers are only to receive events and kick start servi

[android-developers] Re: Start TTS from broadcast receiver

2009-07-09 Thread Dianne Hackborn
You need to start your own service and do the work there. There are examples of this in APiDemos. On Thu, Jul 9, 2009 at 3:18 AM, nuno wrote: > > Hi all, > I am trying to start TTS from a broadcast receiver and it as document > an intent receiver can't bind the service. > Is there a work around