分类
Android

Android跳转网页

跳转网页

使用intent对象和Uri对象

 Uri uri = Uri.parse("https://www.your-heart.top/Qt/Qt-latestVersion.apk");    //设置跳转的网站
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
startActivity(intent);