Results 1 to 1 of 1
- 12-18-2012, 05:46 AM #1
Senior Member
- Join Date
- Jan 2012
- Location
- TamilNadu
- Posts
- 162
- Rep Power
- 2
problem while retrieving data from sqlite
Good Morning To All!
.gif)
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
ponmar
poligton,
posilas,
etc..,
my code for database handler
My code for on the classJava Code:public void serchlike() { String nm=((EditText)findViewById(R.id.editText1)).getText().toString(); String[] argList = {"'%%%%"+nm+"%%%%'"}; String select = "Select id from SearchApplication Where(id like " + argList +")"; }
Java Code:ed = (EditText)findViewById(R.id.editText1); ed.setOnKeyListener(new View.OnKeyListener() { @Override public boolean onKey(View v, int keyCode, KeyEvent event) { db.serchlike(); return false; } });
what i have to do..,
can anyone guide me please..,- Raj
Similar Threads
-
retrieving data from token
By bozovilla in forum Advanced JavaReplies: 4Last Post: 09-30-2010, 08:49 AM -
Problem retrieving data to JSP from Bean [using Hibernate]
By linking90 in forum JavaServer Pages (JSP) and JSTLReplies: 11Last Post: 09-09-2010, 05:50 PM -
Store data is not retrieving
By JavaJunkie in forum CLDC and MIDPReplies: 2Last Post: 05-30-2009, 08:08 AM -
error while retrieving data from data base
By kirtesh4u in forum New To JavaReplies: 5Last Post: 11-15-2008, 04:10 PM -
Retrieving data from the DB
By yuchuang in forum JDBCReplies: 2Last Post: 11-27-2007, 08:59 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks