开发者

need help in sms reader

i intend to develop an app which would speak to the user the message he desires in the inbox. I have successfully created an app where there is a text box and when the user finishes typing in it and presses a speak button, h开发者_运维知识库e can hear what he has written, now how do i extend this to the desired app? please could someone please guide me on this?


I have a Gmail-to-SMS app that read the email from the content provider of the Gmail app. I think it's useful to you.

The cursor helper can get the conversation and message: http://github.com/qrtt1/android-gmail-to-sms/blob/new-input-format/src/googlecode/email/to/sms/CursorHelper.java

You can see the client how to use it: http://github.com/qrtt1/android-gmail-to-sms/blob/new-input-format/src/googlecode/email/to/sms/Email2SMSActivity.java

Finally, don't forget the uses-permission

<uses-permission
        android:name="com.google.android.providers.gmail.permission.READ_GMAIL" />

If you want to see the details in android's source, there is Gmail.java in this path:

./frameworks/base/core/java/android/provider/Gmail.java
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜