阅读SMS和MMS数据库中的Andr​​oid数据库中、MMS、SMS、Andr

2023-09-05 04:49:06 作者:Top丶彪悍丿

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

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

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

谢谢,我AP preciate任何帮助。

解决方案

有关于Android的短信和彩信数据库中没有任何正式文件

............

您可以得到很多信息,关于什么的每一列从 Telephony.java 使用。你可以在这里获取文件。 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.

解决方案

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

............

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