0

From the developer guide of Content Providers:

Android itself includes content providers that manage data such as audio, video, images, and personal contact information.

From the developer guide of Content Provider Basics:

one of the built-in providers in the Android platform is the user dictionary, which stores the spellings of non-standard words that the user wants to keep.

From the Javadoc of ContentProvider:

Known Direct Subclasses DocumentsProvider, FileProvider, MockContentProvider, SearchRecentSuggestionsProvider

From the API documentation of UserDictionary.Words:-

java.lang.Object ↳ android.provider.UserDictionary.Words

They are saying that Android Platform comes with some built-in content providers. Then say that Android platform has a built-in provider user dictionary. Secondly, if we implement our own content provider, even then we subclass ContentProvider class, right?

So why doesn't UserDictionary.Words content provider extent the ContentProvider class?

Solace
  • 8,612
  • 22
  • 95
  • 183
  • 1
    and what for? do you know how to use CPs? we do not using 'em directly only via ContentResolver ... the subclasses of CP are for subclassing specialized versions of CP ... the UserDictionary.Words class is only helper class for accessing of user dictionary CP(similar to Contacts.*/ContactsContract.* classes) – Selvin Dec 09 '14 at 10:33
  • @Selvin "the UserDictionary.Words class is only helper class for accessing of user dictionary CP"- thank you, this makes it clear. If you can write it as answer, I can mark it as accepted, will help future visitors. – Solace Dec 10 '14 at 07:08

0 Answers0