일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 습관만들기
- Kotlin FCM
- OkHttp Interceptor
- MVP Architecture
- 66챌린지
- 알고리즘 자바
- Kotlin
- 영어공부
- 안드로이드 fcm
- WebView
- Android ProgressBar
- scope function
- 카카오 알고리즘
- 안드로이드 갤러리 접근
- android recyclerview
- 안드로이드 카카오 로그인
- Android 12
- Android ViewPager2
- Android 12 대응
- Android
- Java
- Android WebView
- 프로그래머스 알고리즘
- Android Interceptor
- DataBinding
- 영어독립365
- 안드로이드
- Android Navigation
- Android DataBinding
- Android Jetpack
- Today
- Total
목록안드로이드 (92)
Developer Geek
Project Build 안되는 이유 찾기 Android Studio에서 build.gradle 파일을 수정하고 싱크룰 맞추는 중 실패하는 경우가 있다. 대게는 실패할 경우, 실패에 대한 이유를 Build 콘솔에서 명시해주지만 가끔은 Unknown Reaseon이라고 하면서 실패하는 경우가 있다. 또는 싱크는 성공했지만, Build가 되지 않는 경우가 있다. 이 때 Event Log 콘솔에서 보면 실패했다고 알려주지만 자세한 실패 이유를 설명해주지 않는 경우도 있다. 이런 경우에는 이유를 알 수 없어서 구글링으로도 해결하기가 어렵다. 실패 이유를 찾는 방법이 있다!! 바로 로그 파일(idea.log)을 직접 확인하는 방법이다. 내가 사용하는 맥북 기준으로 로그 파일 경로는 다음과 같다. User > {u..
Android 12: Safer Component Exporting 대응 중요 내용 공식 문서에서는 Android 12 이상부터 Safer Component Exporting에 대해서 아래와 같이 설명한다. If your app targets Android 12 or higher and contains activities, services, or broadcast receivers that use intent filters, you must explicitly declare the android:exported attribute for these app components. 안드로이드 12 이상을 타겟할 경우, activity, service 또는 broadcast receiver 중에서 intent f..
let 범위 함수 범위함수란 범위함수란 영어로 Scope Funtion으로 불린다. 함수명 Scope Funtion에서 알 수 있듯이 이 범위 내에 함수를 만드는 것이다. 범위(Scope)를 만들어서 그 안에서 람다식을 이용해 로직을 구현할 수 있다. let 범위함수 fun T.let(block: (T) -> R): R let 범위함수에 대해서 Kotlin 공식 문서에서는 다음과 같이 설명하고 있다. The context object is available as an argument(it). The return value is the lambda result. 공식 문서에서는 let 함수에 간단하게 설명되어있다. 자기 자신을 argument(it) 파라미터로 받는 코드 블록을 생성하고 코드 블록 안에서의..
apply 범위함수 범위함수란 범위함수란 영어로 Scope Funtion으로 불린다. 함수명 Scope Funtion에서 알 수 있듯이 이 범위 내에 함수를 만드는 것이다. 범위(Scope)를 만들어서 그 안에서 람다식을 이용해 로직을 구현할 수 있다. apply 범위함수란 fun T.apply(block: T.() -> Unit): T apply 범위함수에 대해서 Kotlin 공식 문서에서는 다음과 같이 설명하고 있다. The context object is available as a receiver(this). The return value is the object itself. Use apply for code blocks that don't return a value and mainly opera..
PendingIntent Mutability 안드로이드 앱의 targetSdk 버전이 12라면 무조건 PendingIntent 객체에 mutability를 명시해야한다. PendingIntent 란 class PendingIntent: Parcelable 공식문서에는 다음과 같이 설명되어있다. A description of an Intent and target action to perform with it. Instances of this class are created with getActivity, getActivities, getBroadcast and getService; the returned object can be handed to other applications so that they c..
PendingIntent 란 어디서 PendingIntent를 사용했나? 나는 PendingIntent를 Notification을 구현하는 중 학습하는 중 처음으로 사용하게 되었다. FCM을 통해서 푸시 알림을 구현하는데 FCM 사용에 대해서만 초점을 맞추어서 당시에는 Notification에 들어가는 PendingIntent에는 크게 신경쓰지 않고 구글링하여 사용했었다. 단지 PendingIntent는 단어 뜻 그대로 대기하고 있는 Intent로써 Notification을 클릭했을 때, 동작하는 Intent 명시 정도로만 이해했다. 하지만 최근에 Android 12(targetSdk 31) 대응에 대해 학습하던 중, PendingIntent의 (im)mutablility를 명시하지 않으면 안된다는 내용..
WebView Bridge WebView 란 WebView(웹뷰)란 프레임워크에 내장된 웹 브라우저 컴포넌트로 뷰(View)의 형태로 앱에 임베딩하는 것을 말한다. 즉, WebView는 앱 내에 웹 브라우저를 넣는 것이다. 웹 페이지를 보기 위해서 혹은 앱 안에서 HTML을 호출하여 앱을 구현하는 하이브리드 형태의 애을 개발하는데에도 많이 사용된다. 자세한 내용은 다음을 참고. [Android] WebView란 WebView 정의 웹뷰(WebView)란 프레임워크에 내장된 웹 브라우저 컴포넌트로 뷰(View)의 형태로 앱에 임베딩하는 것을 말한다. 즉, WebView는 앱 내에 웹 브라우저를 넣는 것이다. 웹 페이지를 보기 위해 devgeek.tistory.com WebView Bridge 란 Bridg..
개요 Foreground Service Foreground Service에 대해 개발 공식 문서에서는 다음과 같이 설명한다. Foreground services perform operations that are noticeable to user. Foreground services show a status bar notification*, so that user are actively aware that your app is performing a task in the foreground and is consuming system resources. Device that Android 12 (API level 31) or higher provide a streamlined experience for sh..