I had the following code for Content Resolver Query:
String selection = Columns.NAME + "=? and " + Columns.AVAILABILITY + "=?";
String[] selectionArgs = { name, true };
Cursor c = getContentResolver().query(Columns.URI, null, selection, selectionArgs, null);
This code was working fine since I had only one name, but now I have an array of names which are to be added to cursor only if their availability is true. ie, my scenario is I want to put those rows in the cursor which have any of the names (present in the array) only if their Availability is true.
How can I achieve this?