Android Content provider list
Asked Answered
J

4

19

Where can I get the full list of Content Provider that Android offers out of the box?
Specifically, I'm looking for a content provider that lists received SMS.

Jurisconsult answered 27/7, 2009 at 10:46 Comment(0)
S
23

The publicly available ones are listed in the android.provider package in the SDK documentation:

http://developer.android.com/reference/android/provider/package-summary.html

All other ones are undocumented, presumably for a reason. You are welcome to search the Android source code for those classes which extend ContentProvider, perhaps using Google Code Search. And, if you are working on improving the Android firmware, you can also make inquiries on one of the Android open source project lists to see how best for you to add in your specific desired capability.

Stagnate answered 27/7, 2009 at 14:52 Comment(2)
Some are undocumented since they are were just created for specific purposes, and there is no guarantee that they will always be there - see this blog post by Tim Bray from Google: Be Careful With Content Providers. He also gives a tip on how to find the others by looking at the source code.Pinhole
for those here in 2023, new link to code search with that query: cs.android.com/search?q=extends%20ContentProvider&sq=Acreage
N
6

The content provider for SMS was removed from the SDK in Android 1.5. It was available in the earlier SDKs though.

Use these to get the required URIs

Uri.parse("content://sms")
Uri.parsr("content://sms/inbox")
Uri.parsr("content://sms/sent")
etc

Keep in mind that since these are undocumented they may change in the future.

For more details look at core/java/android/provider/Telephony.java in the android source code

Nowell answered 28/7, 2009 at 7:45 Comment(2)
Prashast, is this available in SDK 2.2, If not how can I access sms Inbox?Clotho
Unfortunately, these are still undocumented. You still use them on a 2.2 phone though.Nowell
R
6

You can use adb shell dumpsys > dumpsys.txt and search for "content providers" in that file. From that you can see the list

Reitz answered 15/1, 2011 at 8:9 Comment(0)
E
1

You can use next line adb shell dumpsys | grep Provider{

Elene answered 27/1, 2015 at 10:22 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.