Java Code Examples for android.content.ContentProviderOperation.newDelete()

The following are Jave code examples for showing how to use newDelete() of the android.content.ContentProviderOperation class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: aos-MediaLib   File: NetworkScannerServiceVideo.java   Source Code and License Vote up 5 votes
public void addDelete(DeleteString deletes) {
    int deleteCount = deletes.getCount();
    if (deleteCount > 0) {
        Builder delete = ContentProviderOperation.newDelete(VideoStoreInternal.FILES_SCANNED);
        String deleteSelection = BaseColumns._ID + " IN (" + deletes.toString() + ")";
        if (DBG) Log.d(TAG, "delete WHERE " + deleteSelection);
        delete.withSelection(deleteSelection, null);

        mUpdateExecutor.add(delete.build());
        mDeletes += deleteCount;
    }
}
 
Example 2
Project: ContentPal   File: RawDelete.java   Source Code and License Vote up 4 votes
@NonNull
@Override
public ContentProviderOperation.Builder contentOperationBuilder(@NonNull TransactionContext transactionContext) throws UnsupportedOperationException
{
    return ContentProviderOperation.newDelete(mUri);
}
 
Example 3
Project: ContentPal   File: RowUriReference.java   Source Code and License Vote up 4 votes
@NonNull
@Override
public ContentProviderOperation.Builder deleteOperationBuilder(@NonNull TransactionContext transactionContext)
{
    return ContentProviderOperation.newDelete(mRowUri);
}