浏览器中打开指定的链接

浏览器中打开指定的链接

try {
            Intent intent = new Intent(Intent.ACTION_VIEW);
            intent.setData(Uri.parse(mCurrentUrl));
            this.startActivity(intent);
        } catch (ActivityNotFoundException e) {
            //需要增加此异常处理的原因是:手机上可能没有安装浏览器
        }

猜你喜欢

转载自lynen.iteye.com/blog/2113810