Delete multiple records getContentResolver DELETE

1

This code eliminates call records with only one parameter and is functional.

uri = Uri.parse("content://call_log/calls");
String seleccion= CallLog.Calls.NUMBER + " LIKE ?";
String[] mSelectionArgs = {"1111111111"};
int mRowsDeleted = 0;
mRowsDeleted = getContentResolver().delete(
           uri,
           seleccion,
           mSelectionArgs);

xTxtCampo.setText("Borrados: " + mRowsDeleted);

This deletes all the call records where the number is equal to 11111111, now I want to use two parameters ie delete all calls that are equal to 111111111 or 222222222

    
asked by Alvaro C. 13.01.2017 в 21:19
source

0 answers