Btw, I still have the content being read out. You may want to comment it out, if it infringes on your privacy. :D.
This app does not have an activity. Not required, anyway, isn't it?
There is TextToSpeechService which runs in the background and a SMSReceiver which extends Broadcast receiver. SMSReceiver, on receiving an intent of "android.provider.Telephony.SMS_RECEIVED" , triggers the TextToSpeechService which does all the talking. This is pretty much the summary.
You will see some hardcoding in the speakWords(...) method, E.g. StringBuffer buf = new StringBuffer("You have sms from....");
You may put all the hard-coding in the strings.xml. This is just a simple example. The app can be extended to look up the phone book and read out the sms only if the sender is in the contacts list.
I can mail you the source code if would like to play around. :)
Hello,
ReplyDeleteI want to try doing this.
Can you please send me code for reference.
My Email Id is : rakesh20004u@gmail.com
Thanks a lot,
Rakesh
Hello mam,
ReplyDeleteI always refer your tutorial and i loved that so much...
Plz send me the code for refernce bcoz my app is based on that...
so plz help me..
Email id:kadamnilesh4@gmail.com
Hi Ashimita,
ReplyDeleteIts interesting and of course I am struggling with this now. Will you please help me by sending the codes. I am on the way of creating an app that reads the content of sms. Plz mail me at: tonythampi1@gmail.com