Good Morning To All!

i am facing an problem with sqlite..,

while user type on my search box (EditText) it have to retrieve the information from database..,

for example if he want's to search begin with polaris

it should filter Like Query in data Base


my code for database handler

Java Code:

    public void serchlike()
    	String nm=((EditText)findViewById(;
    	String[] argList = {"'%%%%"+nm+"%%%%'"};
        String select = "Select id from SearchApplication Where(id like " + argList +")";    	
My code for on the class

Java Code:
ed = (EditText)findViewById(;
        ed.setOnKeyListener(new View.OnKeyListener() {
			public boolean onKey(View v, int keyCode, KeyEvent event) {
				return false;

what i have to do..,

can anyone guide me please..,