Here it is..
Intent intent = new Intent(Intent.ACTION_WEB_SEARCH); String keyword= "your query here"; intent.putExtra(SearchManager.QUERY, keyword); startActivity(intent);
How about voice-based searches ..
Intent sp=new Intent(RecognizerIntent.ACTION_WEB_SEARCH); sp.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, RecognizerIntent.LANGUAGE_MODEL_FREE_FORM); sp.putExtra(RecognizerIntent.EXTRA_PROMPT, "Speak please"); startActivity(sp);
Nizam
source share