On 28 Paź, 11:15, skink <[EMAIL PROTECTED]> wrote:
> On 26 Paź, 23:41, shotwave <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > Hi, I am trying to implemente a customsuggestionproviderwhich will
> > allow to promt user in selecting email addresses. Unfortunately no
> > matter what I do I keep getting the
>
> > '10-26 22:22:02.871: WARN/SearchDialog(565): Suggestions cursor
> > discarded due to missing required columns.'
>
> > message in console, though looks like I have specified all the
> > possible columns in the resulting cursor...
>
> > final MatrixCursor result = new MatrixCursor(new String[] {
> > SearchManager.SUGGEST_COLUMN_FORMAT,
> > SearchManager.SUGGEST_COLUMN_TEXT_1,
> > SearchManager.SUGGEST_COLUMN_TEXT_2,
> > SearchManager.SUGGEST_COLUMN_ICON_1,
> > SearchManager.SUGGEST_COLUMN_ICON_2,
> > SearchManager.SUGGEST_COLUMN_INTENT_ACTION,
> > SearchManager.SUGGEST_COLUMN_INTENT_DATA,
> > SearchManager.SUGGEST_COLUMN_INTENT_DATA_ID,
> > SearchManager.SUGGEST_COLUMN_QUERY,
> > SearchManager.SUGGEST_MIME_TYPE,
> > SearchManager.SUGGEST_URI_PATH_QUERY});
> > // fill the cursor using addRow(Object[])
> > return result;
>
> > what am I doing wrong?
>
> i think you missed column _id
i mean android.provider.BaseColumns._ID
skink
>
> skink
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---