当前位置: 代码迷 >> Android >> android 怎么打开浏览器
  详细解决方案

android 怎么打开浏览器

热度:39   发布时间:2016-05-01 18:34:02.0
android 如何打开浏览器

? ? ? ? ? ? ? ? Intent intent = new Intent();

? ? ? ? ? ? ? ? intent.setAction("android.intent.action.VIEW");

? ? ? ? ? ? ? ? Uri content_uri_browsers = Uri.parse("http://csdn.net");

? ? ? ? ? ? ? ? intent.setData(content_uri_browsers);

? ? ? ? ? ? ? ? intent.setClassName("com.android.browser","com.android.browser.BrowserActivity");

? ? ? ? ? ? ? ? startActivity(intent);}

  相关解决方案