Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
Tags
- notification bar
- ExifInterface
- requestPermission
- Android
- BottomSheetDialog
- LOG
- application
- 403 Error
- navigation component
- kdoc-generator
- circlecrop
- ActivityResultContracts
- notification setting
- App Startup
- jsontokotlinclass
- Plugins
- onResume
- itemAnimator
- datastore
- skipcollapsed
- Blinking
- webview
- Git
- ChromeCustomTab
- onReceivedSslError
- prettyJson
- 이미지 gps
- shotcut
- notification
- room
Archives
- Today
- Total
목록OnConflictStrategy (1)
Debbi Story
Room Insert시 rowId 얻기
developer.android.com/training/data-storage/room/accessing-data?hl=ko Room DAO를 사용하여 데이터 액세스 | Android 개발자 | Android Developers Room 라이브러리의 일부인 DAO(데이터 액세스 개체)를 사용하여 데이터베이스 테이블을 수정하는 방법 알아보기 developer.android.com Room 데이터베이스에 Insert 했을때 rowId를 반환 받을 수 있는데요. @Insert(onConflict = OnConflictStrategy.REPLACE) suspend fun insertTask(task: TodoEntity): Long return값을 Long 타입으로 해주시면 됩니다. 참고로 onConflict는..
안드로이드/Tip
2020. 10. 23. 01:40