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)
}
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
本文链接:https://www.haomeiwen.com/subject/latyrctx.html
网友评论