Is there a way to have a service module be started and "sit idle" until the main "tweaks" it to do it's function.
For example, I created a service module that plays audio. I need the user experience to be fast, but I need the service module to play audio only when the user touches a view.
I can make the service module run every 500 milliseconds looking for audio file(s) to play, but this seems wasteful.
Can the Service module be stimulated to do its functions from within main, but otherwise sit "idle"?
Thanks
For example, I created a service module that plays audio. I need the user experience to be fast, but I need the service module to play audio only when the user touches a view.
I can make the service module run every 500 milliseconds looking for audio file(s) to play, but this seems wasteful.
Can the Service module be stimulated to do its functions from within main, but otherwise sit "idle"?
Thanks