i corrected the runtime error by making mtts as static and using TextSpeaker.mtts instead of tspker.mtts . Now i am able to receive the message in a Toast but i am not able to hear any sound . the new log messages are :
06-21 14:45:04.488: DEBUG/Receiver(586): Message received successfully 06-21 14:45:04.598: INFO/NotificationService(52): enqueueToast pkg=com.example.TextSpeaker callback=android.app.ITransientNotification $stub$pr...@43bcacc0 duration=0 06-21 14:45:04.869: VERBOSE/Telephony(182): getOrCreateThreadId uri: content://mms-sms/threadID?recipient=5556 06-21 14:45:05.289: VERBOSE/Telephony(182): getOrCreateThreadId cursor cnt: 1 06-21 14:45:06.198: WARN/NotificationService(52): STOP command without a player 06-21 14:45:06.378: DEBUG/MediaPlayer(52): Couldn't open file on client side, trying server side 06-21 14:45:06.398: ERROR/MediaPlayerService(30): Couldn't open fd for content://settings/system/notification_sound 06-21 14:45:06.418: ERROR/MediaPlayer(52): Unable to to create media player 06-21 14:45:06.428: WARN/NotificationService(52): error loading sound for content://settings/system/notification_sound 06-21 14:45:06.428: WARN/NotificationService(52): java.io.IOException: setDataSource failed.: status=0x80000000 06-21 14:45:06.428: WARN/NotificationService(52): at android.media.MediaPlayer.setDataSource(Native Method) 06-21 14:45:06.428: WARN/NotificationService(52): at android.media.MediaPlayer.setDataSource(MediaPlayer.java:699) 06-21 14:45:06.428: WARN/NotificationService(52): at android.media.AsyncPlayer.startSound(AsyncPlayer.java:62) 06-21 14:45:06.428: WARN/NotificationService(52): at android.media.AsyncPlayer.access$200(AsyncPlayer.java:33) 06-21 14:45:06.428: WARN/NotificationService(52): at android.media.AsyncPlayer$Thread.run(AsyncPlayer.java:99) -- You received this message because you are subscribed to the Google Groups "Android Developers" 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-developers?hl=en

