Is it possible to use TTS inside a service in order to add some vocal message to a notification?
I've done some test but I can hear the message only when the main activity is show. When only the service is running I get only the notification without spoken message.
Probably I should start an 'invisible' activity with CallSubDelayed, use TTS and then terminate it. But I'm wondering if it is possible to do everything from then service...
I've done some test but I can hear the message only when the main activity is show. When only the service is running I get only the notification without spoken message.
Probably I should start an 'invisible' activity with CallSubDelayed, use TTS and then terminate it. But I'm wondering if it is possible to do everything from then service...