【发布时间】:2021-06-30 13:14:32
【问题描述】:
我想将用户重定向到另一个打开 Internet url 的活动。单击按钮时。
这是我目前的代码
Button(onClick = {
val intent = Intent(Intent.ACTION_VIEW, Uri.parse("http://www.google.com"))
// Here is some code that starts the activity
}) {
Text(text="APPLY HACK")
}
【问题讨论】:
标签: android kotlin android-jetpack-compose