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
- http
- Eclipse
- Retrofit2
- block scope
- 안드로이드
- Anko SQLite
- linux
- component
- .kt
- ReactDOM
- Kotlin
- function scope
- react
- vim
- LinearLayout
- cardview
- RecyclerView
- Git
- view
- intent
- permission
- RelativeLayout
- javascript
- ViewGroup
- layout
- Anro Coroutines
- java
- android
- ConstraintLayout
- props
Archives
- Today
- Total
목록http (2)
이것저것 다 개발
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