setNotificationUri

 

Cursor c = qb.query(mTasksDb,
                projection,
                selection, selectionArgs,
                null, null,
                orderBy);

            c.setNotificationUri(getContext().getContentResolver(), uri);

        return c;
    }

In above query implementation for content provider,
can I delete the line c.setNotificationUri(getContext().getContentResolver(),
uri) ??

 

You can certainly do that if you want to, but if you do, then you won't be
notified if someone goes and modifies the data.

你可能感兴趣的:(c,null,delete,query)