天天看點

android 指定浏覽器打開網頁

1 Intent intent=new Intent(Intent.ACTION_VIEW);

2 Uri uri=Url.parse("http://www.map1000.com");

3 intent.setData(url);

4 intent.setClassName("com.tencent.mtt","com.tentcent.mtt.MainActivity");

5 startActivity(intent);

指定浏覽器打開網頁

繼續閱讀