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
AndroidDev Surabaya
May 18, 2018
Programming
81
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
61
MVVM Architecture with Room
androiddevsurabaya
0
89
Android : Easy Phone Authentication using Firebase
androiddevsurabaya
0
80
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
200
BE AN ANDROID EXPERT - AndroidDev Surabaya Meetup #9
androiddevsurabaya
0
150
#KartiniZamanNow - Meetup AndroidDev SBY #7
androiddevsurabaya
0
100
Learn Android UI #4 - Meetup AndroidDev Surabaya #7
androiddevsurabaya
0
140
Other Decks in Programming
See All in Programming
仕様駆動開発の消費期限
watany
20
9.2k
Cloudflare is Agents
chimame
0
190
PyConJP2026_wat_Python × Signal Processing: How to Draw Pictures with Sound Using Spectrogram Art
wat
0
620
進化を続けるGo toolsの現在地 / The Current State of Ever-Evolving Go Tools
hond0413
0
280
Go 1.27からのGODEBUG / Go 1.27 リリースパーティ #go127party
mazrean
0
270
Deep dive into the select statement (GopherCon UK)
jespino
0
160
自動化したのに回らない テスト運用の壁―AI時代の品質責任と生産性
mfunaki
0
560
Flow は今どうなっているか
mizdra
PRO
0
790
Jindong: Introducing Declarative Haptics in Compose Multiplatform
l2hyunwoo
0
140
思考垂れ流し開発 ~音声入力 × AIエージェント × 開発ハーネスによる試行錯誤~
npostring
0
550
LLMは4年分のCompose移行を再現できるのか?実プロダクト279件のXMLで探る自動化の境界線
makun
0
120
【QA Test Talk Vol.8】AI-DLC による Whole Team Approach の加速
pkshadeck
PRO
0
260
Featured
See All Featured
Bootstrapping a Software Product
garrettdimon
PRO
306
120k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.3k
Leveraging LLMs for student feedback in introductory data science courses - posit::conf(2025)
minecr
1
370
Un-Boring Meetings
codingconduct
0
400
Evolving SEO for Evolving Search Engines
ryanjones
0
270
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
63
45k
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
3k
Balancing Empowerment & Direction
lara
6
1.3k
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.8k
The #1 spot is gone: here's how to win anyway
tamaranovitovic
3
1.1k
Google's AI Overviews - The New Search
badams
0
1.6k
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'