tags:

views:

1688

answers:

2

Where can i get a complete list of content providers that Android offers out of the box?
I'm looking for a content provider that list received SMS.

+2  A: 

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.

CommonsWare
i knew provider package documentation but i did not understand why it is just a partial list. Anyway, thanks for the hints Mark.
systempuntoout
+2  A: 

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

Prashast
Thanks Prashast!
systempuntoout
Prashast, is this available in SDK 2.2, If not how can I access sms Inbox?
GG
Unfortunately, these are still undocumented. You still use them on a 2.2 phone though.
Prashast