kotlin实现监听,浏览器跳转url
2019-07-27 本文已影响0人
Jimmy不二
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)
}