I am making app for finding number plates of india. my database contains two columnns "code" and "city" code contains data like MH1,MH2 etc. and city contains data like Pune,Mumbai.
App contains one edittext box and listview.
Listview consists whole data from database like GJ3 Rajkot, GJ10 Jamnagar etc.
If I write GJ in edittext box whole only data of GJ must be appear in the listview.
I got this query from one person but how can i integrate with edittext box
Cursor c = mDb.rawQuery(
"select * from table_name where column_name = ?",
new String[] { "search" });