在程序中调用浏览器查看网页内容

来源:互联网 发布:矩阵lu分解 编辑:程序博客网 时间:2024/04/29 11:09

Intent it = new Intent(Intent.ACTION_VIEW, Uri
         .parse(advertisement.getUrl()));
       // 调用系统的浏览器 如果不存在的话 会抛异常
       // it.setClassName("com.android.browser",
       // "com.android.browser.BrowserActivity");
       mContext.startActivity(it);

原创粉丝点击