Example usage for android.app Activity startSearch

List of usage examples for android.app Activity startSearch

Introduction

In this page you can find the example usage for android.app Activity startSearch.

Prototype

public void startSearch(@Nullable String initialQuery, boolean selectInitialQuery,
        @Nullable Bundle appSearchData, boolean globalSearch) 

Source Link

Document

This hook is called to launch the search UI.

Usage

From source file:Main.java

/**
 * Invoke "search" action, triggering a default search.
 *///from w  w  w .j  ava  2 s  .c o  m
public static void goSearch(Activity activity) {
    activity.startSearch(null, false, Bundle.EMPTY, false);
}