简体   繁体   English

Android上的私有API和SMS内容URI

[英]Private API and SMS content URI's on Android

Without accessing private API's to get Content URI's, etc. for SMS, how are we expected to query this data? 在不访问私有API的情况下获取SMS的Content URI等的情况下,我们如何查询此数据? I am currently in the process of writing my own SMS app and I want to stay as compatible as possible. 我目前正在编写自己的SMS应用程序,因此我希望保持兼容性。 Without storing the information myself in my own database (such that I can store the text messages so that other programs can access the data when/if they delete my app) and without using private API's how the heck are we suppose to query SMS data? 无需自己将信息存储在我自己的数据库中(这样我就可以存储文本消息,以便其他程序可以在/删除程序时访问数据),也可以不使用私有API来查询SMS数据?

Without accessing private API's to get Content URI's, etc. for SMS, how are we expected to query this data? 在不访问私有API的情况下获取SMS的Content URI等的情况下,我们如何查询此数据?

You are not expected to query that data at all. 您根本不需要查询该数据。

"That data" is not part of the operating system. “该数据”不是操作系统的一部分。 It is part of whatever SMS client the user happens to use. 它是用户碰巧使用的任何SMS客户端的一部分。 That might be the open source Messenger app, for which Google has declined to provide a documented and supported API. 那可能是开源Messenger应用,Google拒绝为其提供提供文档和受支持的API。 That might be whatever SMS client a device manufacturer has put on the device, which may or may not have a documented and supported API and may or may not be using the Google client's content provider. 这可能是设备制造商在设备上放置的SMS客户端,可能有也可能没有文档和受支持的API,并且可能会或可能不会使用Google客户端的内容提供商。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM