安卓1.5:读短信 [英] Android 1.5: Reading SMS messages
问题描述
我创建一个备份实用程序为Android,我需要阅读的收件箱,发件箱和dratfs内容。我怎样才能实现这个目标的SDK 1.5版?
I'm creating a backup utility for Android and I need to read content of inbox, outbox and dratfs. How can I accomplish that on SDK v1.5?
推荐答案
有一个内容提供商的访问短信,但它不属于公共SDK文档。如果你使用<一个href="http://developer.android.com/reference/android/content/ContentResolver.html#query%28android.net.Uri,%20java.lang.String%5B%5D,%20java.lang.String,%20java.lang.String%5B%5D,%20java.lang.String%29"><$c$c>ContentResolver.query()$c$c>与乌里
的内容://短信
您应该能够访问这些信息。
There is a content provider for accessing SMS messages, but it's not documented in the public SDK. If you use ContentResolver.query()
with a Uri
of content://sms
you should be able to access these messages.
您可以找到更多的信息,这个谷歌论坛主题或<一HREF =http://stackoverflow.com/search?q=android%2Bsms> previous问题上的计算器。
You can find more information on this Google Groups thread or previous questions on stackoverflow.
这篇关于安卓1.5:读短信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!