List of usage examples for android.content Intent ACTION_WEB_SEARCH
String ACTION_WEB_SEARCH
To view the source code for android.content Intent ACTION_WEB_SEARCH.
Click Source Link
From source file:ee.ioc.phon.android.speak.RecognizerIntentActivity.java
private void handleResultsByWebSearch(final Context context, final Handler handler, final ArrayList<String> results) { // Some tweaking to cleanup the UI that would show under the // dialog window that we are about to open. runOnUiThread(new Runnable() { public void run() { mLlTranscribing.setVisibility(View.GONE); }/*from www . j a va 2s . c o m*/ }); Intent searchIntent; if (results.size() == 1) { searchIntent = new Intent(Intent.ACTION_WEB_SEARCH); searchIntent.putExtra(SearchManager.QUERY, results.get(0)); } else { // TODO: it would be a bit cleaner to pass ACTION_WEB_SEARCH // via a pending intent searchIntent = new Intent(this, DetailsActivity.class); searchIntent.putExtra(DetailsActivity.EXTRA_TITLE, getString(R.string.dialogTitleHypotheses)); searchIntent.putExtra(DetailsActivity.EXTRA_STRING_ARRAY, results.toArray(new String[results.size()])); } startActivity(searchIntent); }