Android Question TTS stoped working after starting service for intercepting SMS message

petr4ppc

Well-Known Member
Licensed User
Longtime User
Dear friends,

I have some not standard situation (Android 8).
I am using this for intercepting SMS:
https://www.b4x.com/android/forum/t...cepting-sms-messages-in-the-background.20103/

and I am using simple TTS. (Before using Android 8 it was everything OK.)

In Android 8 - If I push button for reading some text, for example "Hallo", then TTS is perfect.
BUT
After receiving SMS if I push the same button. Nothing is happen. TTS is not reading text.
I must restart TABLET and then I can repeat situation - before receiving SMS is TTS perfect and after receiving SMS, TTS is not working.


Receiving of SMS have some affect to TTS?

Have you experience, please?
Thank you
p4ppc
 

petr4ppc

Well-Known Member
Licensed User
Longtime User
Erel, thank you for your answer:

Yes I am able to play musis in Media player after receiving SMS.

BUT

Before receiving SMS is TTS O.K. After receiving SMS, TTS is not working. Then if I go to mediaplayer and I play music and after this I go back to my app and I push button with TTS - EVERYTHING IS OK. Funcionality of TTS is OK after playing music with mediaplayer. You are amazing - why existing this magic? It is possible to solve it, please?


Best regards,
petr4ppc

EDIT: i dont understand, but now after manipulating with MediaPlayer and restarting tablet is new situation:
Before receiving SMS is TTS OK. After receive SMS is TTS not functioned and then after short time is TTS automaticaly refreshed - TTS activated with button is functioned - without restarting tablet and without restarting Application. But why it is not functioned immadiately after receiving SMS?

EDIT2: The trouble is, that if I start TTS immadiately after receiving SMS, then TTS is not working and I must restart tablet. The trouble still exists. With MediaPlayer I can play music.The situations described upper are only for situation when TTS is not started immadiately after receiving sms. This trouble is on TABLET. On the phone with Android 8 is TTS working OK.
 
Last edited:
Upvote 0

petr4ppc

Well-Known Member
Licensed User
Longtime User
Yes, I have tried this on Tablet - It is same situation, TTS is not working in Tablet.

TTS is working on the phone.
 
Upvote 0

petr4ppc

Well-Known Member
Licensed User
Longtime User
Thank you very much for code and possibility - it not solved the situation.

After some tests it looks, that trouble can be because of connection to Google service. I am trying to solve it, but one certain solution is to restart tablet.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…