kotlin实现监听,浏览器跳转url

dialog.setPositiveButton("立即更新"){ dialogInterface, i->

    val intent = Intent(Intent.ACTION_VIEW)

    val uri = Uri.parse(url)

    intent.addCategory(Intent.CATEGORY_BROWSABLE)

    intent.data = uri

    startActivity(intent)

}

你可能感兴趣的:(kotlin实现监听,浏览器跳转url)