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. App upgrade (with zipalign) causes force closes/disappearing of app icon

On Nov 3, 11:44am, Rafael Sanches <ra...@users.sourceforge.net>



Does this happen on anything other than the HTC Hero?  The emulator or
any other device?

-- 

2. Mounting an extra partition in Android

I'm trying to create an additional vfat partition, and mount it under
the root as something like '/public' (this partition will eventually
appear as an external drive on the user's system when USB is connected
to the Android device).

This partition would eventually be mapped into flash memory, but in
the emulator I would just create an image file for it.  I used
mksdcard (since it creates a vfat partition) to generate a 64M
pubdata.img, and placed the file in the avd folder.

Next I modified /init.rc to mount the partition:

|    mkdir /public 0000 system system
|
|    # Mount public data partition
|    mount vfat m...@pubdata /public nosuid nodev
|    chown system system /public
|    chmod 0777 /public

...so now the question is "how does 'm...@pubdata' get resolved"?

I've searched the source code and found where the mapping between
'mtd@<token>' and a partition number takes place (system/core/init/
builtins.c), but I don't know how the map itself gets populated.

Can anyone shed some light on this?

Thanks in advance.

-INTJ

(BTW - sorry for the crosspost, I realized too late I originally
posted to the wrong group)

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

3. Trying to add an additional partition - must be missing something...

4. Which Flavour of Linux

5. Socket connection timeout while disable Wi-Fi

6. New Contacts AP

7. Using MediaPlayer best practices?