it's a bit hard to figure out what you want from this email, I assume you're talking about this:
http://www.google.com/codesearch/p?hl=en&sa=N&cd=1&ct=rc#3aMARKchqsQ/trunk/AndroidTTS/src/android/tts/Tts.java&q=TTS%20android I agree this API is a bit questionable, but I don't see the problem. You can't block inside the function you pasted if it's run from the main thread, that'll make your service ANR. If the generateAudioFromText method is actually not an inbound RPC then you just need to put whatever happens after the service is initialized into the callback. Once the user has installed the TTS library, then the second part of your function will be called. BTW there are very sound reasons to not make RPCs pump the event loop - Windows RPC does this and it resulted in massive confusion and horrible, hard to find bugs to do with unexpected re-entrancy. I can elaborate in excessive detail if you want. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "android-framework" group. To post to this group, send email to android-framework@googlegroups.com To unsubscribe from this group, send email to android-framework+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-framework?hl=en -~----------~----~----~----~------~----~------~--~---