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 | 31 |
Tags
- Coroutine
- Hilt
- android
- Kotlin
- TEST
- androidStudio
- boj
- AWS
- MiTweet
- 코드포스
- architecture
- Codeforces
- Gradle
- GitHub
- textfield
- relay
- ProGuard
- Coroutines
- 프로그래머스
- livedata
- activity
- Rxjava
- 쿠링
- Compose
- Python
- MyVoca
- pandas
- 암호학
- 코루틴
- 백준
Archives
- Today
- Total
목록start (1)
이동식 저장소
App Startup
몇몇 클래스는 사용하기 전에 초기화해야 하는 경우가 있다. 예를 들어 로그 라이브러리인 Timber는 앱을 시작한 후 최대한 빨리 초기화해야 한다. Application 클래스 안에서 초기화할 수도 있지만, startup 라이브러리를 사용하면 앱이 시작될 때 자동으로 초기화할 수 있다. 설치 build.gradle 파일에 다음 의존성을 추가하자. dependencies { implementation("androidx.startup:startup-runtime:1.1.1") } Startup 라이브러리의 장점 이전에는 클래스를 ContentProvider에서 초기화하는 경우도 있었지만, ContentProvider 자체가 만들기 비싼 데다가 결정적으로 클래스의 초기화 순서를 지..
Primary/Android
2023. 1. 25. 17:18