Hi im very new to Android dev so i have this query that will look into my table and check whether a certain record is existing given the username and password to as of now i have this
public user getLOGusr(String uname, String pass)
{
SQLiteDatabase db = this.getReadableDatabase();
Cursor cursor = db.query(TABLE_USRS, new String[]{KEY_ID,KEY_NAME,KEY_E_ADDR,KEY_PASS} , KEY_NAME + "=?", KEY_PASS + "=?",
new String[]{String.valueOf(uname), String.valueOf(pass)});
return somestuff;
}
but it is riddled with a lot of errors. any improvements on my code? thanks so much