开发者你好,可以通过这种方式实现。
try {
Intent intent = new Intent();
Operation operationCommonComponts = new Intent.OperationBuilder()
.withUri(Uri.parse(website)) // website是网站
.build();
intent.setOperation(operationCommonComponts);
startAbility(intent);
} catch (Exception exception) {
error("Unable to open website", exception, this);
}
开发者你好,可以通过这种方式实现。
try {
Intent intent = new Intent();
Operation operationCommonComponts = new Intent.OperationBuilder()
.withUri(Uri.parse(website)) // website是网站
.build();
intent.setOperation(operationCommonComponts);
startAbility(intent);
} catch (Exception exception) {
error("Unable to open website", exception, this);
}
举报