public void openBrowser(View v){ Intent intent = new Intent(); intent.setAction("android.intent.action.VIEW"); intent.addCategory("android.intent.category.DEFAULT"); intent.addCategory("android.intent.category.BROWSABLE"); intent.setData(Uri.parse("http://www.gyarmy.com")); startActivity(intent); }
0则评论给“打开浏览器”