jeudi 2 avril 2015

SQLIte Andriod Application Searching data with the help of two user input

i am developing an android application. i import database in my application. i want to fetch data from two columns MY_CELL_ID and MY_LAC. but i didn't understand db.query.please solve my problem here is my code. i haven;t understand how to code AND operator for second user input.


Cursor friendCursor = database.query(TABLE_NAME, new String[] {MY_ID, MY_CELL_ID, MY_ADDRESS, MY_LATITUDE, MY_LONGITUDE, MY_CITY, MY_PROVINCE, MY_LAC}, MY_CELL_ID+"="+ Integer.parseInt(txtCellenry.getText().toString()), null, null, null, null);


Aucun commentaire:

Enregistrer un commentaire