我有几种输入类型,每种输入类型在个人词典(UserDictionary)中都有自己的单词。我想从一种输入类型/一种语言环境中删除一个单词。
我尝试了以下方法,但应用程序崩溃:
getContentResolver().delete(UserDictionary.Words.CONTENT_URI,
UserDictionary.Words.LOCALE + " = en_US", null);
错误说:
android.database.sqlite.SQLiteException: no such column: en_US (code 1): , while compile: DELETE FROM words WHERE locale = en_US