일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 안드로이드
- Retrofit2
- Rx자바
- hardcoded string search
- android P
- rxandroid
- java
- Switch to the Play Referrer API by March 1
- RX
- Android
- RxJava2
- RXjava
- andorid studio
- deprecating the install_referrer
- 하드코드검색
- Today
- Total
목록android P (2)
Lucky Dog
투명한 배경의 흰색 아이콘으로 만들어야 한다. (White icon) 안드로이드 Pie (9.0 / API 28) 기기에서 일반 이미지 아이콘을 Notification smallIcon 으로 사용하면원래 이미지가 아니라 흰색 또는 회색 단색으로 푸시 아이콘이 표시된다. 투명한 배경의 흰색 아이콘을 만든 후 코드 상에서 분기하면 해결. if (android.os.Build.VERSION.SDK_INT >= 28) { // Android P icon = R.drawable.ic_white_noti;}Colored by Color Scriptercs 참고 제작도구 : Android studio > New > Image Assets > IconType(Notification)
에러발생 원인 안드로이드 P 버전(9.0) 에서 'HTTP' 를 사용하면 발생. - java.net.UnknownServiceException : CLEARTEXT communication to xx.xxx.xxx.xx not permitted by network security policy - java.io.IOException: Cleartext HTTP traffic to www.google.com not permitted 해결방법 1. AndroidManifest.xml 수정 android:usesCleartextTraffic="true" 추가 2. HTTPS 사용