Android
-
Duplicate class javax.annotation.CheckForNull found in modulesAndroid 2020. 7. 3. 16:27
타이틀로 시작하는 에러 화면 해결하려면 앱수준 build.gradle 안에 android{} 안에 아래 추가 applicationVariants.all { variant -> variant.getRuntimeConfiguration().exclude group: 'com.google.code.findbugs', module: 'jsr305' variant.getRuntimeConfiguration().exclude group: 'com.google.code.findbugs', module: 'annotations' }
-
[Android] 알파값, 투명도 0~100% to Hex Opacity ValuesAndroid 2020. 6. 29. 15:09
100% — FF 99% — FC 98% — FA 97% — F7 96% — F5 95% — F2 94% — F0 93% — ED 92% — EB 91% — E8 90% — E6 89% — E3 88% — E0 87% — DE 86% — DB 85% — D9 84% — D6 83% — D4 82% — D1 81% — CF 80% — CC 79% — C9 78% — C7 77% — C4 76% — C2 75% — BF 74% — BD 73% — BA 72% — B8 71% — B5 70% — B3 69% — B0 68% — AD 67% — AB 66% — A8 65% — A6 64% — A3 63% — A1 62% — 9E 61% — 9C 60% — 99 59% — 96 58% — 94 57% — 91 5..
-
[Android] adb installAndroid 2020. 6. 24. 19:23
adb install app installation - push a single package to the device and install it adb install test.apk app installation - push multiple APKs to the device for a single package and install them adb install-multiple test.apk test2.apk app installation - push one or more packages to the device and install them atomically adb install-multi-package test.apk demo.apk replace existing application reins..
-
[Android] 갤러리에서 이미지 선택 후 이미지뷰에서 보여주기Android 2020. 6. 23. 16:03
버튼 onClick 이벤트에 아래처럼 구현 Java Intent intent = new Intent(Intent.ACTION_PICK); intent. setDataAndType(android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI, "image/*"); startActivityForResult(intent, REQUEST_CODE); Kotlin val intent = Intent(Intent.ACTION_PICK) intent.setDataAndType( MediaStore.Images.Media.EXTERNAL_CONTENT_URI, "image/*" ) startActivityForResult(intent, REQUEST_CODE) onAc..