Example usage for android.app SearchManager SUGGEST_MIME_TYPE

List of usage examples for android.app SearchManager SUGGEST_MIME_TYPE

Introduction

In this page you can find the example usage for android.app SearchManager SUGGEST_MIME_TYPE.

Prototype

String SUGGEST_MIME_TYPE

To view the source code for android.app SearchManager SUGGEST_MIME_TYPE.

Click Source Link

Document

MIME type for suggestions data.

Usage

From source file:com.vishwa.pinit.LocationSuggestionProvider.java

@Override
public String getType(Uri uri) {
    switch (uriMatcher.match(uri)) {
    case SEARCH_SUGGEST:
        return SearchManager.SUGGEST_MIME_TYPE;
    default:/*from   w  ww .  jav  a  2s .c  om*/
        throw new IllegalArgumentException("Unknown URL " + uri);
    }
}

From source file:com.android.googlesearch.SuggestionProvider.java

/**
 * This will always return {@link SearchManager#SUGGEST_MIME_TYPE} as this
 * provider is purely to provide suggestions.
 *//*from   w ww  .  j av  a 2  s . c o  m*/
@Override
public String getType(Uri uri) {
    return SearchManager.SUGGEST_MIME_TYPE;
}