Hi All,
I have read google search document and read the sample for
SearchableDicationary and NotePad for ContentProvider.
however, I am confused by search query within ContentProvider.
that is, how to map my customized column to Search display Result.
for example: my database construct: _id, firstname, lastname;
when do my query within Contentprovider:
public Cursor query(Uri uri, String[] projection, String selection,
String[] selectionArgs,
String sortOrder) {
try{
SQLiteDatabase database = openDatabase(context);
return database.query(ContactConst.TABLE_NAME,new
String[]
{ContactConst.ID_KEY,ContactConst.FIRST_NAME,ContactConst.LAST_NAME},null,null,null,null,ContactConst.FIRST_NAME);
}catch(Exception ex)
{
Log.e("DB",ex.toString());
}
}
I can see it is searched and return result, however, it never show
information on screen.
I can scroll up/down, but it is blank.
how to map my firstname or lastname as SUGGEST_COLUMN_TEXT_1?
Thanks.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en