Without accessing private API’s to get Content URI’s, etc. for SMS, how are we expected to query this data? I am currently in the process of writing my own SMS app and I want to stay as compatible as possible. 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?
Share
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. That might be the open source Messenger app, for which Google has declined to provide a documented and supported 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.