Start the browser with a search query in android.

By | November 16, 2011

In android we can simply start a browser or start the browser with a supplied search query.
Remember that we start the browser using an intent and we can put extra parameters in an intent.
Here in the browser intent we can supply the search query as a “SearchManager.QUERY” and giving the value.

 Intent search = new Intent(Intent.ACTION_WEB_SEARCH);
 search.putExtra(SearchManager.QUERY, "ANDROID");
Website Pin Facebook Twitter Myspace Friendfeed Technorati Digg Google StumbleUpon Premium Responsive

Leave a Reply

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