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 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!

-- 



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. combining 1.5 and 1.6

Hi I'm wondering if it's possible to have an app that has a portion of
its code implemented using Android 1.5 (API Level 3) and part using
1.6. (For example maybe implementing one of the app's activities in
1.6 while the overall app is in 1.5)?

thanks much

Brian

-- 

2. Calling close() on a Cursor that's backing a ListView



This is intentional. The Cursor is tied to the UI thread once you put it
in a CursorAdapter and attach that CursorAdapter to an AdapterView
(e.g., ListView).

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android Training in NYC: 4-6 June 2010: http://guruloft.com

-- 

3. Send email in background

4. MediaRecorder: unsupported paramter

5. Docking nexus one, yuk beli :-)

6. Calling close() on a Cursor that's backing a ListView

7. Huahahah kelakuan ngga berubah....