首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > Android >

android 怎么打开浏览器

2012-06-26 
android 如何打开浏览器? ? ? ? ? ? ? ? Intent intent new Intent()? ? ? ? ? ? ? ? intent.setAction

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);}

热点排行