方法一:
使用URI 定位导向。 This class aims to do as little up front work as possible. To accomplish that, we vary the implementation dependending on what the user passes in.
For example, we have one implementation if the user passes in a URI string (StringUri) and another if the user passes in the individual components (OpaqueUri).
实现代码:
Uri uri = Uri.parse("http://www.google.com");
Intent intent = new Intent(Intent.ACTION_VIEW,uri);
startActivity(intent);
方法二:
百度搜索:
Intent intent = new Intent();
intent.setAction(Intent.ACTION_WEB_SEARCH);
intent.putExtra(SearchManager.QUERY,"http://www.google.com");
startActivity(intent);
..................................................................................................................