I do a search in the application, in the SelectionArgs array, the names of the necessary books, what do I need to specify in the selection in order to display the necessary books?
String or = " OR ?"; String selection = "B_NAME = ?"; for (int i = 0; i< selectionArgs.length; i++){ selection += or; } Cursor c = myDbHelper.query1("BOOK_TABLE_ALL", null, selection, selectionArgs, null, null, null); if (c.moveToFirst()) { do { Toast.makeText(this, c.getString(1), Toast.LENGTH_SHORT).show(); } while (c.moveToNext()); } I do so, displays only the first element.