Thanks a lot for your answer, Brill!

As a smartphone tester, I just wanted to know physical database
information,
but user dictionary contents are only used through content provider as
you said.
I thought I could find out which is the real table for user dictionary
just by
checking some java files just like what I did with Contacts or Mms
app.

Finally, I wrote some test codes using content provider like this.


        cursor = cr.query(UserDictionary.Words.CONTENT_URI,
                        new String[]{UserDictionary.Words._ID, 
UserDictionary.Words.WORD},
where_clause,
                        new String[]{testWord }, null);



On May 20, 1:09 pm, Brill Pappin <[email protected]> wrote:
> 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
>
> On May 19, 9:22 am, Jaden Pak <[email protected]> wrote:
>
>
>
>
>
>
>
> > 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
> > forUserdictionarywords.
>
> > Does anyone have an idea about this?
> > In UserDictionary.java (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!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to