User dictionary in Settings

by Jaden Pak » Fri, 20 May 2011 09:34:00 GMT

Sponsored Links
 Hi, all!

I'm developing some test codes for Android Settings(native app).

But I have some difficulties finding out what the real SQLite table is
for User dictionary words.

Does anyone have an idea about this?
In (which seems to be a provider class), I can see
only addWord() method.
In order to learn how to insert, update or delete in SQLite table,
which source file should I
check ?

Thanks in advance!


Re: User dictionary in Settings

by Brill Pappin » Fri, 20 May 2011 12:09:42 GMT

 android.provider.UserDictionary is a simple content provider.
You should be able to query it any way you like. You likely want the
Words content.

You might need to read up on content providers if you are not familiar
with them.
However, remember that the UserDictionary is not just used by your
app, so be careful what you do with it!

- Brill


Sponsored Links

Other Threads

1. Any one tried uisng mediaplayer example ,I ma unable to play video file from local directory

Any one tried uisng mediaplayer example ,I ma unable to play video
file from local directory

2. need help in debugging/making sense of this code

  I got an error on the emulator saying that the table new was not
found. From the de{*filter*}, I notice that the program never entered the
catch block, and therefore the table is not created. I borrowed this
code from the notepad tutorial and it worked fine when i did the
tutorial. Does anyone know what else I could be missing?

    private static final String DATABASE_NAME = "test";
    private static final String DATABASE_TABLE = "new";

    public FileShareDbAdapter open() throws SQLException {
        try {
            mDb = mCtx.openDatabase(DATABASE_NAME, null);
        } catch (FileNotFoundException e) { //this was never entered
even if i change the DATABASE_NAME to anything else
            try {
                mDb =
            } catch (FileNotFoundException e1) {
                throw new SQLException("Could not create database");
        return this;

3. MediaPlayer example: Has anyone been able to stream an .mp4 file yet?

4. style and the color of the separator

5. Autocomplete and filtering issue

6. New AndroidGL Tutorials Posted

7. Long list of LogCat error messages from DeviceMonitor