insert

open fun insert(uri: Uri, values: ContentValues): Uri
Implement this to handle requests to insert a new row. As a courtesy, call notifyChange() after inserting. This method can be called from multiple threads, as described in Application Fundamentals: Processes and Threads.

Return

The URI for the newly inserted item.

Parameters

uri

The content:// URI of the insertion request.

values

A set of column_name/value pairs to add to the database.