package com.mokelab.sample.contentprovider.provider.todo;

import android.content.ContentProvider;
import android.content.ContentValues;
import android.database.Cursor;
import android.net.Uri;

/**
 * Content Provider for Todo
 */
public class TodoProvider extends ContentProvider {

    @Override
    public boolean onCreate() {
        return true;
    }

    @Override
    public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) {
        return null;
    }

    @Override
    public String getType(Uri uri) {
        return null;
    }

    @Override
    public Uri insert(Uri uri, ContentValues contentValues) {
        return null;
    }

    @Override
    public int delete(Uri uri, String selection, String[] selectionArgs) {
        return 0;
    }

    @Override
    public int update(Uri uri, ContentValues contentValues, String selection, String[] selectionArgs) {
        return 0;
    }
}

@@ -130,16 +130,51 @@
 Values;%0A
+import android.content.UriMatcher;%0A
 import a
@@ -312,16 +312,506 @@
 ider %7B%0A%0A
+    private static final String AUTHORITY = %22com.mokelab.todo.provider%22;%0A%0A    // region URI type%0A    private static final int URITYPE_TODO_LIST = 1;%0A    private static final int URITYPE_TODO = 2;%0A    // endregion%0A%0A    private static final UriMatcher sUriMatcher;%0A%0A    static %7B%0A        sUriMatcher = new UriMatcher(UriMatcher.NO_MATCH);%0A        sUriMatcher.addURI(AUTHORITY, %22users/*/todos%22, URITYPE_TODO_LIST);%0A        sUriMatcher.addURI(AUTHORITY, %22users/*/todos/#%22, URITYPE_TODO);%0A    %7D%0A%0A
     @Ove

Add UriMatcher