Android Url跳转
1 String url = "http://www.baidu.com" 2 3 Intent urlIntent = new Intent(Intent.ACTION_VIEW, 4 Uri.parse(url)); 5 startActivity(urlIntent);
有个地方需要注意 url 必须带 http:// 开头,否则在某些机型上会提示
No Activity found to handle Intent { act=android.intent.action.VIEW dat=www.baidu.com }

浙公网安备 33010602011771号