Oops. My searchable is this.
<searchable
xmlns:android="http://schemas.android.com/apk/res/android"
android:label="@string/search_label"
android:hint="@string/search_hint"
android:searchSuggestAuthority="com.rhapsody.content.GlobalSearchProvider"
android:searchSuggestSelection=" ?"
android:searchSuggestThreshold="1"
android:includeInGlobalSearch="true"
android:searchSuggestIntentAction="android.Intent.action.VIEW">
</searchable>
And I also have this in the ContentProvider...
private static final UriMatcher uriMatcher = buildUriMatcher();
private static UriMatcher buildUriMatcher()
{
// Add some filters so that when the URI matches one it returns
a
code
UriMatcher matcher = new UriMatcher( UriMatcher.NO_MATCH );
// For global search suggestions
matcher.addURI( AUTHORITY, SearchManager.SUGGEST_URI_PATH_QUERY,
GLOBAL_SEARCH_SUGGESTION_CODE );
matcher.addURI( AUTHORITY, SearchManager.SUGGEST_URI_PATH_QUERY
+ "/
*", GLOBAL_SEARCH_SUGGESTION_CODE );
return matcher;
}
--
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