I am making an android application that needs to open the webbrowser when the go button on quick search is pressed. How can i make this happen? that it starts the webbrowser? This is the code that i got so far:
public class SearchFunction extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
final Intent queryIntent = getIntent();
final String queryAction = queryIntent.getAction();
if (Intent.ACTION_SEARCH.equals(queryAction)) {
String searchKeywords = queryIntent.getStringExtra(SearchManager.QUERY);
//Is it here that i can start intents/webbrowser???
}
}
}