【发布时间】:2011-02-08 06:14:31
【问题描述】:
我需要有关如何通过代码启动 android 浏览器的说明。 谢谢!
【问题讨论】:
标签: android
我需要有关如何通过代码启动 android 浏览器的说明。 谢谢!
【问题讨论】:
标签: android
如果您想要一个成熟的浏览器,请尝试:
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://Yoururl.com")));
看看ACTION_VIEW Intent。
如果您想简单地显示一些 HTML,请尝试使用 WebView:
WebView webview = new WebView(this);
setContentView(webview);
webview.loadUrl("http://yoururl.org/");
【讨论】: