Activity Result API 의 registerForActivityResult 사용 시 IllegalStateException 오류가 발생했다. 이번 포스팅에서는 해당 오류를 해결하는 방법에 대해 알아보자 [Android] - Activity Result API Error message java.lang.IllegalStateException: LifecycleOwner XXX is attempting to register while current state is RESUMED. LifecycleOwners must call register before they are STARTED. Solution 해당 IllegalStateException registerForActivityResult 를 전..
Activity 간 데이터를 주고받을 때 사용했던 startActivityForResult(), onActivityResult() 가 deprecated 되었다. 이번 포스팅에서는 deprecated 된 API 를 대신하여 도입된 registerForActivityResult() 에 대해 알아보자. startActivityForResult - onActivityResult 하단은 전통적인 startActivityForResult(), onActivityResult() 방식이다. 코드만 봐도 알겠지만, 이 방식은 여러 문제점들이 있다. ◼ Tight Coupling (강한 결합) 해당 code 와 logic 을 추상화 시키거나 다른 곳으로 분리 시킬 수 없는 구조이다. (delegate 정도는 가능하겠지만..
- Total
- Today
- Yesterday
- 안드로이드 서비스
- mPANDO
- Android Service
- p2e
- registerForContextMenu
- RoomDatabase
- StartService
- onContextItemSelected
- 앱테크
- StringUtils
- 리워드앱
- 안드로이드 인텐트
- Intent
- 무료채굴
- BroadcastReceiver
- android flag activity
- android intent
- android activity flag
- notifyDataSetChanged
- 앱테크 추천
- task
- onCreateContextMenu
- 채굴앱
- task 생성
- M2E
- WEMIX
- 리워드 어플
- 무료 채굴
- bindservice
- android task
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |