Vote UpVote

Adding to the Android User Dictionary

The PodCast at Delphi.org – On Android there is a single UserDictionary that works across all keyboards, and any app (with the appropriate permissions) can query, add and remove words. Here is some simple code to add a word to the dictionary (via XE8): uses Androidapi.JNI.Provider, Androidapi.Helpers, Androidapi.JNI.JavaTypes; procedure AddUserWord(const AWord: string); begin // Need WRITE_USER_DICTIONARY permission TJUserDictionary_Words.JavaClass.addWord( SharedActivityContext, // Context StringToJString(AWord),// Word to add 255, // Frequency: 1- 255 nil, // ...
Favorite? Off-Topic? Jim McKeeth @ 2015-08-07 20:01


Visits: 794
Votes: 2
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Alister Christie
Jim McKeeth
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


Please login or register to use this functionality.
(click on this box to dismiss)