Android - User Dictionary (Content Provider)

> Android

1 - About

A provider of user defined words for input methods to use for predictive text input. Applications and input methods may add words into the dictionary.

Words can have associated:

  • frequency information (how many times the word was chosen)
  • and locale information.

From API level 23, it can not be accessed. bug ticket This is intended behaviour, the user dictionary is now accessible only by the current spellchecker and keyboard.

3 - Permission

In the manifest, add the following permission

<uses-permission android:name="android.permission.READ_USER_DICTIONARY"/>
Advertising

4 - Content URI

class: UserDictionary.Words.CONTENT_URI
text: content://user_dictionary/words
explanation: scheme://authority/GetListOfWords

5 - Documentation / Reference