AndroidアプリからWEB検索させるインテント要点だけ

  1. Intent search = new Intent(Intent.ACTION_WEB_SEARCH);  
  2. search.putExtra(SearchManager.QUERY, “検索文字列”);  
  3. startActivity(search); 

こんな感じでいけるみたい。外部のアプリが立ち上がって検索実行できる。
情報元:http://mobile.tutsplus.com/tutorials/android/launch-android-browser/

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

CAPTCHA