Browse » Home » Resource, Tips » Blog article: 在Activity中通过URL来查看网页

这是一个非常简单的应用,仅仅是通过新的Intent调用Browser通过指定的地址来查看网页。
源代码 (Java):

String url = "http://almondmendoza.com/android-applications/";
Intent i = new Intent(Intent.ACTION_VIEW);
i.setData(Uri.parse(url));
startActivity(i);

Tags:

Posted in Resource, Tips |

Random Posts



Leave a Reply

You must be logged in to post a comment.