Android fails to call SQLite WHERE column LIKE '%?%' The statement has 0 parameters Android fails to call SQLite WHERE column LIKE '%?%' The statement has 0 parameters sqlite sqlite

Android fails to call SQLite WHERE column LIKE '%?%' The statement has 0 parameters


Try the other way round:

String selection = DataColumns.NAME+" like ? ";String[] selectionArgs = new String[]{ "%"+keyword+"%" };

hope it helps