So im trying to build a search method for my android app and i keep running into this error
android.database.sqlite.SQLiteException: near \"Prefect\": syntax err
There should be single quote while passing the values .i.e., your query should be passed in this way "*SELECT * FROM Person WHERE name = 'Ford Prefect';*". Below I have edited your question.
public Cursor findUser(String uName) {
Cursor res = myDatabase.query("Person WHERE name = '"+uName+"';",
null,null,null,null,null,null);
return res;
}