im trying to get the row id where the title equals the string i pass in.
Im pretty shakey on the syntax and i've been surfing around this site trying to find an example Eclipse will like. Usually it tells me that the arguments im providing are not valid but i cant seem to make sense of it. I've tried adding nulls to fill the other arguments like groupBy but it keeps telling me the arguments are wrong.
Heres my code
private String[] folderID = {MySQLiteHelper.COLUMN_FOLDERID};
private String[] folderTitle = {MySQLiteHelper.COLUMN_FOLDERNAME};
public Cursor findFolderId(String i){
String[] select = {i + "=" + folderTitle};
Cursor cursor = database.query(MySQLiteHelper.TABLE_FOLDERS, folderID, "WHERE", select);
return cursor;
EDIT:
Here is the typical error
The method query(String, String[], String, String[], String, String, String) in the type SQLiteDatabase is not applicable for the arguments (String, String[], String, String[])