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. Porting USB Host driver for chipset with register address below high memory

Hi all,

I am stuck with this issue for quite some time now.

I am porting the USB Host (EHCI to be exact) driver for a chipset with
register address (at 0x5A800000) and the internal SRAM in the same
range as well. This is below the high memory set (about 0x8E000000).

This is why I am getting all the "Unable to handle kernel paging
request" or "Uninitialised Exception" errors.

I tried with ioremap_nocache() but it seems no mapping has been done
and hence the same errors. The IO MMU is available on board but the
whole Linux kernel comes to a halt when I tried to set the address
above 0xA0000000.

So, I am wondering if there is a way get around this in the Linux
kernel. Since the readl and writel operations work for this address
range, I believe the only thing that is stopping the access is the
Linux memory management.

Thanks in advance.

-- 

2. Updating an Android project on the commandline to include mulitple library references

I am trying to use Android.bat update project and add multiple library
references. If I specify them using an -l option only the last
reference added is picked up.
Is there a way to mention multiple lib references on this command
line.

Thanks for the help.

-- 

3. Android SDK installer can't find Java

4. Android Curl Animation

5. Picture.createFromStream loses dashed line

6. RatingBar adding new background artifacts in 2.3

7. screen light off problem