阅读SMS和MMS数据库中的Andr​​oid [英] Reading SMS and MMS Database in Android

查看:171
本文介绍了阅读SMS和MMS数据库中的Andr​​oid的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谷歌将提供在Android的API联系人提供的一个非常好的文档。 (你可以看到它这里。它的全部细节这些数据库使用的所有表和列名。 我试图寻找相同的短信和彩信的数据库(分别位于mmssms.db),但我看不到任何文档的。所以,我的问题是:

  • 首先,这是真的,有没有这样的文件?
  • 如果有,为什么谷歌试图保持这个离我们远去?
  • 而且,在你看来,如何才能得到关于使用的表和每列在表中说明更多详细资料(即每列用于)。

顺便说一句,我需要这些信息来编写Java程序来读取短信/彩信的数据。你可以认为我已经得到mmssms.db文件。

谢谢,我AP preciate任何帮助。

解决方案
  1. 有关于Android的短信和彩信数据库中没有任何正式文件

  2. ............

  3. 您可以得到很多信息,关于什么的每一列从 Telephony.java 使用。你可以在这里获取文件。 <一href="https://github.com/android/platform_frameworks_base/blob/ics-mr1-release/core/java/android/provider/Telephony.java"相对=nofollow> Telephony.java

Google is providing a very nice documentation of the contacts provider in Android API. (You can see it HERE. It has a full details of all tables and columns names used in these databases. I tried to look for the same for sms and mms databases (which are located in mmssms.db) but I could not see any documentation for that. So my questions are:

  • First, is it true that there is no such documentation ?
  • If yes, why google tried to keep this away from us ?
  • And, in your opinion, how can I get more details about the tables used and a description of each column in that table (i.e. what each column is used for).

By the way, I need this information to write a java program that will read sms/mms data. You can assume that I already got mmssms.db file.

Thanks, and I appreciate any help.

解决方案

  1. There is no official documentation about sms and mms database in android

  2. ............

  3. You can get a lot of information about what each column is used for from the Telephony.java. You can get the file here. Telephony.java

这篇关于阅读SMS和MMS数据库中的Andr​​oid的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆