One solution for question 1 is : Maintain a state machine internal to your Service. If your service is not in "ready state", calls to bindService can return false and calls to startService can ignore the request.
Balwinder Kaur ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Oct 19, 3:45 am, jbrohan <[email protected]> wrote: > startActivityForResult(...) and then you receive the return through > onActivitResult(). > It's hard at first but you quickly get used to it and it works fine.. > John > > On Oct 18, 9:00 am, jax <[email protected]> wrote: > > > A couple of questions > > > 1. I have a service that needs to restrict access to it's methods at > > certain times. What is the best way to implement this. My activity > > binds to the service initially. > > > 2. I am using the TTS (Text to Speech) library but I have noticed > > that is takes a little while to load and appears to do so in another > > Thread. I need my activity to wait until this is fully loaded, how do > > I do that? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

