분류 전체보기
-
SSL Error Handler For more information on how to address WebView SSL Error Handler alerts, please see this Google Help Center article.Android/Error 2021. 4. 2. 11:15
For more information on how to address WebView SSL Error Handler alerts, please see this Google Help Center article. 앱의 WebView SSL 오류 핸들러 알림 해결 방법 - Google 고객센터 도움이 되었나요? 어떻게 하면 개선할 수 있을까요? 예아니요 support.google.com WebViewClient 의 onReceivedSslError 에서 ssl 인증서를 무시할경우 해당 내용의 메일을 받을수 있습니다. override fun onReceivedSslError(view: WebView?, handler: SslErrorHandler?, error: SslError?) { val builder = ..
-
incompatible types: CommonErrorLayoutBinding cannot be converted to ViewDataBindingAndroid/Error 2021. 4. 1. 17:11
안드로이드 데이터 바인딩을 사용 할 때 xml 안에 include 태그가 있는경우에는 include 한 xml 도 데이터 바인딩을 사용 해야 합니다. [참고 링크] stackoverflow.com/questions/58147214/view-binding-not-work-with-include-incompatible-types-progressbarlayoutbindi View Binding not work with "Include": incompatible types: ProgressBarLayoutBinding cannot be converted to ViewDataBinding Android Studio 3.6. Canary 12 build.gradle: buildscript { ext.kotlin_v..
-
java.lang.NoSuchMethodException: ...<init>(...)Android/Error 2021. 3. 18. 16:13
java.lang.NoSuchMethodException: dev.dnights.baseViewHolder. (android.view.View) java 또는 kotlin 에서 getDeclaredConstructor() 를 이용해서 class를 생성할때 위와 같은 에러가 발생할경우 해당 생성자가 있는지 확인하고 proguard 나 dexguard 를 사용하고 있다면 아래의 예제처럼 예외처리를 하고 있는지 확인하여야 한다. -keepclassmembers class * extends dev.dnights.BaseViewHolder { (android.view.View); } [참고링크] emflant.tistory.com/52 Constructor 클래스의 getConstructor 와 getDeclar..
-
Android Notifications(알림) 표시Android 2021. 3. 14. 15:28
github.com/DNights/AndroidNotificationsSample DNights/AndroidNotificationsSample Contribute to DNights/AndroidNotificationsSample development by creating an account on GitHub. github.com 안드로이드 알림 표시 관련 샘플 코드 입니다. [참고 링크] developer.android.com/training/notify-user/channels 알림 채널 만들기 및 관리 | Android 개발자 | Android Developers Android 8.0(API 수준 26)부터는 모든 알림을 채널에 할당해야 합니다. 채널마다 채널의 모든 알림에 적용되는 시각적/음향적..
-
[안드로이드] Intent로 이미지 가져오기Android 2021. 3. 6. 13:20
github.com/DNights/AndroidGetImagesSample DNights/AndroidGetImagesSample Contribute to DNights/AndroidGetImagesSample development by creating an account on GitHub. github.com Android 에서 Intent로 ACTION_IMAGE_CAPTURE, ACTION_PICK 을 사용해서 이미지를 가져오는 샘플 코드입니다. 만드는 과정에서 발생한 이슈들 정리합니다. Issue 1. Android 5.0 대에서 ACTION_IMAGE_CAPTURE 로 이미지를 가지고 올 경우 class 변수의 imageCaptureUri 가 null 인 문제 이 경우는 사실 Android 5...
-
이터레이션(Iteration)이란?Domain knowledge 2021. 2. 14. 19:55
en.wikipedia.org/wiki/Iteration Iteration - Wikipedia Repetition of a process Iteration is the repetition of a process in order to generate an outcome. The sequence will approach some end point or end value. Each repetition of the process is a single iteration, and the outcome of each iteration is then the st en.wikipedia.org 이터레이션은 결과를 생성하기위한 프로세스의 반복입니다. 시퀀스는 일부 끝점 또는 끝 값에 접근합니다. 프로세스의 각 반복은 단..
-
Execution failed for task ':app:compileProductionReleaseJavaWithJavac'.> javax/xml/bind/JAXBExceptionAndroid/Error 2021. 2. 9. 15:40
> Task :app:compileProductionReleaseJavaWithJavac FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:compileProductionReleaseJavaWithJavac'. > javax/xml/bind/JAXBException Execution failed for task ':app:compileProductionReleaseJavaWithJavac'. > javax/xml/bind/JAXBException 터미널에서 빌드중 위와 같은 에러가 발생하는 경우가 있다. 이경우는 JAXBException 이 java8에서 지원하는데 사용하는 PC..
-
Could not determine the dependencies of task ':app:uploadCrashlyticsMappingFileRelease'.Android/Error 2021. 1. 27. 13:24
Could not determine the dependencies of task ':app:uploadCrashlyticsMappingFilenRelease'. 처음에는 Firebase의 Crashlytics의 설정을 의심하였으나 현상은 도일하게 발생 하였습니다. 그래서 다른 부분을 확인중 com.flurry.android:analytics 에서 Google service에 의존성을 가지고 있는것을 발견 하였습니다. 그래서 Flurry를 제거후 빌드시 정상적으로 빌드되는것을 확인하였습니다. 그 라이브러리를 제거하고 빌드시 정상적으로 빌드된다면 해당 라이브러리와 Google 서비스 라이브러리와의 버전 충돌일 가능성이 높습니다.
-
Android TextView URL link 처리하기Android 2020. 12. 28. 15:35
android TextView 에서 URL 링크를 클릭하고 표시 하는 방법입니다. 아래의 옵션을 layout xml 의 TextView에 추가 해주면 됩니다. android:linksClickable="true" android:autoLink="web" ex> URL 링크의 색상은 Appthema 의 Accent 색상을 따라갑니다. 다른 색상을 사용 할 경우 styles.xml 에 style 을 추가하여 적용 합니다. ex> style.xml 그리고 링크에 밑줄이 표기되는 것을 제거하고 싶을 경우 아래의 코드를 커스텀 뷰로 추가하여 적용합니다. /** * AutoLink 기능에 의해 생성되는 링크에 밑줄이 표시되지 않게 하는 TextView * @author YMKim */ public class NoU..
-
Kotlin Spread Operator (코틀린 스프레드 연산자)Kotlin 2020. 12. 16. 17:21
코틀린에서 배열로 된 변수를 vararg 함수의 매개변수로 전달할 수 있습니다. 이 경우 spread operator (스프레드 연산자) 를 사용할 수 있습니다. 사용법은 변수 앞에 *을 붙이는 형태로 사용합니다. ex1> fun printNumbers(vararg numbers: Int) { for (number in numbers) { println(number) } } val numbers = intArrayOf(1, 2, 3) printNumbers(*numbers) // This is the same as passing in (1, 2, 3) ex2> val a = arrayOf(1, 2, 3) val list = asList(-1, 0, *a, 4) // This is the same as p..