Google の検索Widgetをインテントを投げて起動

Google の検索Widetインテントを投げて起動するには、

アクション名= android.search.action.GLOBAL_SEARCH を使用する。

---------------------
サンプル、

Intent intent = new Intent("android.search.action.GLOBAL_SEARCH");

// SearchManager.QUERY で検索したいキーワードを渡す。
intent.putExtra(SearchManager.QUERY, "jQuery Mobile");

startActivity(intent);

すると、以下のように検索画面が表示される。

f:id:posturan:20160313224812p:plain



詳しくは、、

http://developer.android.com/guide/topics/search/index.html