반응형
button.setOnClickListener {
val intent = Intent(Intent.ACTION_INSERT)
.setData(CONTENT_URI)
.putExtra(TITLE, "제목 ")
.putExtra(EVENT_LOCATION, "자앙소")
.putExtra(CalendarContract.EXTRA_EVENT_BEGIN_TIME, System.currentTimeMillis())
.putExtra(CalendarContract.EXTRA_EVENT_END_TIME, System.currentTimeMillis()+ (60*60*1000))
startActivity(intent)
}
반응형
'IT > Android' 카테고리의 다른 글
Kotlin] 안드로이드 Dialog 알림 나타나게 하기 (0) | 2020.04.19 |
---|---|
Kotlin] 안드로이드 Recyclerview 아이템 폭 & 간격 & 구분선 표시 (0) | 2020.04.17 |
Kotlin] 안드로이드 앱 실행 시 전면 광고 넣기 (0) | 2020.04.08 |
Kotlin] MultiSelectListPreference 선택값 summary에 반영 (0) | 2020.04.04 |
Kotlin] ListPreference 선택값 summary에 반영 (0) | 2020.04.04 |
댓글