Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- layout
- cardview
- Git
- RelativeLayout
- LinearLayout
- java
- function scope
- permission
- http
- Anko SQLite
- android
- ViewGroup
- Retrofit2
- react
- Anro Coroutines
- view
- block scope
- ReactDOM
- Eclipse
- 안드로이드
- component
- props
- javascript
- RecyclerView
- ConstraintLayout
- .kt
- linux
- vim
- intent
- Kotlin
Archives
- Today
- Total
목록Retrofit2 (1)
이것저것 다 개발
Android Http 개발에 많이 쓰이는 Retrofit2을 사용해보겠습니다.먼저 AndroidManifest.xml 에 Internet 권한을 추가합니다.다음으로 build.gradle (Module: app) 파일에 dependency를 추가해줍니다.compile 'com.squareup.retrofit2:retrofit:2.4.0' compile 'com.squareup.retrofit2:converter-gson:2.4.0'RetrofitClient Class와 RetrofitService Interface를 만들겠습니다.RetrofitClient에는 static method로 Client의 Instance를 생성해주고Http Request를 하게될 BaseUrl을 명시하며 RetrofitSer..
Android
2018. 5. 25. 13:27