I am having a problem with global search only showing 1 search
suggestion even though I am returning a cursor with multiple rows.
This problem doesn't exist for me in 2.1, nor do I see any other
applications having the same issue I am having. Even when I try
something as basic as this:

private Cursor createMatrixCursorWithMultipleRows()
{
        String[] matrixColumns = new String[] { BaseColumns._ID,
SearchManager.SUGGEST_COLUMN_TEXT_1 };

        MatrixCursor mc = new MatrixCursor( matrixColumns );

        mc.newRow().add( 0 ).add( new String( "0" ) );
        mc.newRow().add( 1 ).add( new String( "1" ) );
        mc.newRow().add( 2 ).add( new String( "2" ) );

        return mc;
}

The only global search suggestion I will see in 2.2 is "0". Anybody
have any ideas what I could be doing wrong?

-- 
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

Reply via email to