i have this selection query to fetch rows from the sqlite database of android phone contacts.
String selection = ContactsContract.Data.MIMETYPE + " = '" + ContactsContract.CommonDataKinds.Phone.CONTENT_ITEM_TYPE + "'"
+ " AND "+ContactsContract.Data.DATA10+ " = '" + select + "'";
Log.d(LOG_TAG,"selection in update data"+selection);
c = mContext.getContentResolver().query(CONTENT_URI, Projection,selection, null, null);
where select = +12244004242
I am successfully able to fetch the reqd data. However my requirement is if i have more than one string. i.e an array of strings.how do i write the query?
I was tring with
String selection = ContactsContract.Data.DATA10 IN ("+select+")";
where select = +12244004242,+12244004245,+12244004248
however i am not getting any values.please help me write the selection query.