Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
How To Consume Api On Android Using Retrofit - ...
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
AndroidDev Surabaya
May 18, 2018
Programming
78
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
How To Consume Api On Android Using Retrofit - Meetup AndroidDev Surabaya #8
Menjelaskan bagaimana cara menggunakan Retrofit dalam mengelola REST API.
AndroidDev Surabaya
May 18, 2018
More Decks by AndroidDev Surabaya
See All by AndroidDev Surabaya
Meetup Desember : AndroidDev Surabaya Overview
androiddevsurabaya
0
58
MVVM Architecture with Room
androiddevsurabaya
0
88
Android : Easy Phone Authentication using Firebase
androiddevsurabaya
0
76
Mengatur Tampilan dan Tata Letak di Android
androiddevsurabaya
0
110
Build More with KOTLIN Anko | AndroidDevSBY Meetup 11
androiddevsurabaya
0
130
The Magic of Kotlin
androiddevsurabaya
0
180
BE AN ANDROID EXPERT - AndroidDev Surabaya Meetup #9
androiddevsurabaya
0
150
#KartiniZamanNow - Meetup AndroidDev SBY #7
androiddevsurabaya
0
97
Learn Android UI #4 - Meetup AndroidDev Surabaya #7
androiddevsurabaya
0
140
Other Decks in Programming
See All in Programming
キャリア迷子上等 ─ "ない道"は自分で作ればいい
16bitidol
3
2.1k
C# and C++ Interoperability - cho-dotnetnew
harukasao
0
250
気圧・高度・GPSを記録&可視化するアプリ「Koudo」を作った話
hjmkth
1
280
技術的負債解消で開発者の未来を開く- AIの力でコード刷新
kmd2kmd
0
110
そのテスト、説明できますか?~LWテスト戦略FW~のご紹介
nakahara
0
150
OSもどきOS
arkw
0
570
The NotImplementedError Problem in Ruby
koic
1
840
正しくソフトウェアを作る、前提を疑うための認知の視点 / doubt-premise
minodriven
21
6.7k
エンジニアと一緒にテストコードの設計と実装を改善した話
mototakatsu
0
200
軽量Java基盤の設計 DIコンテナに頼らない、長期保守と1秒起動の実現 JJUG CCC 2026 Spring
macha64
0
540
Semantic Version 単位で戦略を柔軟に変えて、パッケージアップデートを自動化する
daitasu
1
260
ふつうのFeature Flag実践入門
irof
8
4k
Featured
See All Featured
Marketing to machines
jonoalderson
1
5.5k
RailsConf 2023
tenderlove
30
1.5k
GraphQLとの向き合い方2022年版
quramy
50
15k
Color Theory Basics | Prateek | Gurzu
gurzu
0
370
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
1
2.7k
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
150
Building a Scalable Design System with Sketch
lauravandoore
463
34k
Optimizing for Happiness
mojombo
378
71k
The Illustrated Children's Guide to Kubernetes
chrisshort
51
52k
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
140
Making the Leap to Tech Lead
cromwellryan
135
9.9k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
201
75k
Transcript
How To Consume Api On Android Using Retrofit By: Akhmad
Naufal Refandi
Akhmad Naufal Refandi Android Developer Email :
[email protected]
Retrofit • Library REST client untuk Android yang mengubah API
endpoint menjadi sebuah Java interface API service
Method - POST - GET - DELETE - PUT
Method GET @Path : https://api.themoviedb.org/3/movie/{movie_id}? api_key=<<api_key>>&language=en-US @Query : https://api.themoviedb.org/3/movie/{movie_id}? api_key=<<api_key>>&language=en-US
POST • @Field • @Body
Let’s Start Yang perlu disiapkan : - Niat - Laptop
sudah terinstall Android Studio dan sudah terkoneksi dengan Internet
Library yang dibutuhkan implementation 'com.android.support:appcompat-v7:27.1.1' implementation 'com.android.support:design:27.1.1' implementation 'com.android.support:cardview-v7:27.1.1' implementation
'com.android.support:support-v4:27.1.1' implementation 'com.android.support:recyclerview-v7:27.1.1' implementation 'com.android.support:cardview-v7:27.1.1' implementation 'com.android.support.constraint:constraint-layout:1.1.0’ implementation 'com.jakewharton:butterknife:8.8.1' implementation 'com.intuit.sdp:sdp-android:1.0.4’ implementation 'com.squareup.okhttp3:okhttp:3.8.1' implementation 'com.squareup.okhttp3:logging-interceptor:3.8.1' implementation 'com.squareup.retrofit2:retrofit:2.3.0' implementation 'com.squareup.retrofit2:converter-gson:2.3.0’ annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'