프로그래밍/Kotlin
[Android] 버튼 클릭시 특정 링크로 이동
Youngs_
2022. 6. 30. 09:41
button_5.setOnClickListener {
var intent = Intent(Intent.ACTION_VIEW, Uri.parse("https://www.naver.com"))
startActivity(intent)
}
출처 : https://hjp845.tistory.com/37
[안드로이드 스튜디오][코틀린] 특정 사이트 링크로 이동하기 [android][kotlin]
버튼을 눌렀을 때, 어떤 사이트로 이동하게 만드는 코드이다. button_5.setOnClickListener { var intent = Intent(Intent.ACTION_VIEW, Uri.parse("https://library.dgist.ac.kr/site/dgist_library/menu/839.do"..
hjp845.tistory.com