Code example for ContentResolver

Methods: insert

0
        saveDataToTable(TBL_FIREWORKS, values);
    } 
 
    private void saveDataToTable(String table, ContentValues values) {
        Uri uri = createUri(table);
        contentResolver.insert(uri, values);
    } 
 
    private Uri createUri(String tableName) {
        return Uri.parse(AUTHORITY + tableName);
    } 
}