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
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
AndroidDev Surabaya
May 18, 2018
Programming
1
68
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
Tweet
Share
More Decks by AndroidDev Surabaya
See All by AndroidDev Surabaya
Meetup Desember : AndroidDev Surabaya Overview
androiddevsurabaya
0
50
MVVM Architecture with Room
androiddevsurabaya
0
80
Android : Easy Phone Authentication using Firebase
androiddevsurabaya
0
69
Mengatur Tampilan dan Tata Letak di Android
androiddevsurabaya
0
100
Build More with KOTLIN Anko | AndroidDevSBY Meetup 11
androiddevsurabaya
0
120
The Magic of Kotlin
androiddevsurabaya
0
170
BE AN ANDROID EXPERT - AndroidDev Surabaya Meetup #9
androiddevsurabaya
0
140
#KartiniZamanNow - Meetup AndroidDev SBY #7
androiddevsurabaya
0
87
Learn Android UI #4 - Meetup AndroidDev Surabaya #7
androiddevsurabaya
0
120
Other Decks in Programming
See All in Programming
Grafana:建立系統全知視角的捷徑
blueswen
0
330
AI & Enginnering
codelynx
0
110
CSC307 Lecture 05
javiergs
PRO
0
500
Implementation Patterns
denyspoltorak
0
280
QAフローを最適化し、品質水準を満たしながらリリースまでの期間を最短化する #RSGT2026
shibayu36
2
4.3k
Spinner 軸ズレ現象を調べたらレンダリング深淵に飲まれた #レバテックMeetup
bengo4com
1
230
Oxlintはいいぞ
yug1224
5
1.3k
AtCoder Conference 2025
shindannin
0
1.1k
Oxlint JS plugins
kazupon
1
860
コマンドとリード間の連携に対する脅威分析フレームワーク
pandayumi
1
450
15年続くIoTサービスのSREエンジニアが挑む分散トレーシング導入
melonps
2
190
Vibe Coding - AI 驅動的軟體開發
mickyp100
0
170
Featured
See All Featured
How to build a perfect <img>
jonoalderson
1
4.9k
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
2
3.6k
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
430
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
133
19k
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
77
Amusing Abliteration
ianozsvald
0
97
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
140
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
160
brightonSEO & MeasureFest 2025 - Christian Goodrich - Winning strategies for Black Friday CRO & PPC
cargoodrich
3
98
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
0
410
Marketing to machines
jonoalderson
1
4.6k
Site-Speed That Sticks
csswizardry
13
1.1k
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'