I have a String[] that looks like {1, 2, 3 ..} (a string of IDs).

I want to build a query in Android to obtain all the entries that match the IDs.
Here my code: 

```
Cursor idFoodCursor = getContext().getContentResolver().query(
            uriFood,
            null,
            CookingContract.FoodEntry.COLUMN_NAME + " LIKE ?",
            new String[]{selectionArgs},
            null
    );

    if (idFoodCursor.moveToFirst()) {

        List<String> ids = new ArrayList<String>();
        while (!idFoodCursor.isAfterLast()) {
            ids.add(idFoodCursor.getString(idFoodCursor.getColumnIndex(CookingContract.FoodEntry._ID)));
            idFoodCursor.moveToNext();
        }
        idFoodCursor.close();

        //Convert the ArrayList in String[]
        String[] idSelectionArg = new String[ids.size()];
        ids.toArray(idSelectionArg);

        return new CursorLoader(
                getContext(),
                uriFood,
                FOOD_COLUMNS,
                CookingContract.FoodEntry._ID + " = ?",
                idSelectionArg,
                sortOrder
        );

    }

```

The last query doesn't work because I should add as many "?" as my IDs in the array:

```
Caused by: java.lang.IllegalArgumentException: Cannot bind argument at index 3 because the index is out of range.  The statement has 1 parameters.

```

How can I fix the problem, taking into account what I want to get? (the correspondence of all the ids in the table)