You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
getContentResolver().update(
UserDictionary.Words.CONTENT_URI, // the user dictionary content URImUpdateValues// the columns to updatemSelectionClause// the column to select onmSelectionArgs// the value to compare to
);
返回值为更新记录数
getContentResolver().delete(
UserDictionary.Words.CONTENT_URI, // the user dictionary content URImSelectionClause// the column to select onmSelectionArgs// the value to compare to
);
同样返回删除记录数
Providers also maintain MIME data type information for each content URI they define. \You can use the MIME type information to find out if your application can handle data that the provider offers, or to choose a type of handling based on the MIME type.
The text was updated successfully, but these errors were encountered:
mNewUri 为Uri
mNewUri 格式为: content://user_dictionary/words/<id_value> <id_value>是刚插入行的_ID
返回值为更新记录数
同样返回删除记录数
The text was updated successfully, but these errors were encountered: