일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Android
- RxJava2
- Switch to the Play Referrer API by March 1
- andorid studio
- RX
- java
- rxandroid
- deprecating the install_referrer
- Rx자바
- RXjava
- android P
- Retrofit2
- 하드코드검색
- hardcoded string search
- 안드로이드
- Today
- Total
목록Retrofit2 (3)
Lucky Dog
Retrofit2 Multiple base url Retrofit 에서 여러 개의 base url을 사용해야 하는 경우 아래와 같이 처리한다. RetrofitManager public class RetrofitManager { private static final String TAG = RetrofitManager.class.getSimpleName(); private static HttpLoggingInterceptor logging = new HttpLoggingInterceptor().setLevel(HttpLoggingInterceptor.Level.BODY); private static class LazyHolder { static final RetrofitManager INSTANCE = ne..
RxAndroid + Retrofit2 + LazyHolder singleton (Initialization-on-demand holder idiom) 패턴을 이용한 네트워크 통신 예제 코드가 간결해지고 측정은 안해봤지만 왠지 속도도 빨라진 것 같은 느낌적인 느낌 :D build.gradle dependencies { ... implementation 'com.squareup.retrofit2:retrofit:2.4.0' implementation 'com.squareup.retrofit2:converter-gson:2.4.0' implementation 'com.squareup.okhttp3:okhttp:3.10.0' // Dependencies okio 1...
Caused by: java.io.EOFException: \n not found: limit=0 content=… 1. 서버 방화벽 문제 =>접속 허용으로 해결 2. Tomcat keepAliveTimeout 문제 connectionTimeout 을 늘린다고 해결 안됨. (keepAliveTimeout 을 끄거나 늘려야 함) o 이슈 재현Tomcat7 server.xml 설정 keepAliveTimeout 시간을 줄이고 (ex 1~100)휴대폰에서 접속하면 에러 발생 maxThreads 초과하는 접속은 java.net.SocketTimeoutException: SSL handshake timed out 발생 o Retrofit2 error message java.io.IOException: unexpe..