我想将用户重定向到另一个打开互联网 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")
}
Run Code Online (Sandbox Code Playgroud)