For example: cursor c = db.rawquery ("select * from user where username =? And the password =? ”,
New Stirling [] {"username "," password " });
If you must call the query method of SQLiteDatabase, you can do so.
Db.query ("table name", new string [] {"field 1, field 2"}," condition 1=? And condition 2=? ",new String[]{" value of condition 1, value of condition 2 "}, null, null, null)