Java tutorial
//package com.java2s; //License from project: Apache License import android.app.SearchManager; import android.content.Intent; import android.support.annotation.NonNull; public class Main { @NonNull public static Intent search(@NonNull String query) { final Intent intent = new Intent(Intent.ACTION_WEB_SEARCH); intent.putExtra(SearchManager.QUERY, query); return intent; } }