본문 바로가기

이것저것 다 개발

검색하기
이것저것 다 개발
프로필사진 용용개발

  • All (39)
    • Android (23)
    • React (4)
    • Java (4)
    • Linux (2)
    • Hadoop&HBase (1)
    • Git (2)
    • JavaScript (2)
    • etc (1)
    • 독서 (0)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/05   »
일 월 화 수 목 금 토
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 31
Tags
  • layout
  • javascript
  • Git
  • 안드로이드
  • .kt
  • Kotlin
  • http
  • permission
  • Anko SQLite
  • vim
  • Anro Coroutines
  • Eclipse
  • block scope
  • linux
  • RecyclerView
  • react
  • android
  • ViewGroup
  • intent
  • view
  • cardview
  • RelativeLayout
  • function scope
  • LinearLayout
  • ReactDOM
  • java
  • ConstraintLayout
  • Retrofit2
  • props
  • component
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록Retrofit2 (1)

이것저것 다 개발

[Android] Retrofit2 사용해보기

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
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바