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
1
64
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
48
MVVM Architecture with Room
androiddevsurabaya
0
72
Android : Easy Phone Authentication using Firebase
androiddevsurabaya
0
67
Mengatur Tampilan dan Tata Letak di Android
androiddevsurabaya
0
98
Build More with KOTLIN Anko | AndroidDevSBY Meetup 11
androiddevsurabaya
0
120
The Magic of Kotlin
androiddevsurabaya
0
160
BE AN ANDROID EXPERT - AndroidDev Surabaya Meetup #9
androiddevsurabaya
0
140
#KartiniZamanNow - Meetup AndroidDev SBY #7
androiddevsurabaya
0
85
Learn Android UI #4 - Meetup AndroidDev Surabaya #7
androiddevsurabaya
0
120
Other Decks in Programming
See All in Programming
Scale out your Claude Code ~自社専用Agentで10xする開発プロセス~
yukukotani
2
440
DMMを支える決済基盤の技術的負債にどう立ち向かうか / Addressing Technical Debt in Payment Infrastructure
yoshiyoshifujii
5
750
中級グラフィックス入門~効率的なメッシュレット描画~
projectasura
4
2.4k
変化を楽しむエンジニアリング ~ いままでとこれから ~
murajun1978
0
660
Reactの歴史を振り返る
tutinoko
1
170
商品比較サービス「マイベスト」における パーソナライズレコメンドの第一歩
ucchiii43
0
270
Jakarta EE Meets AI
ivargrimstad
0
570
それ CLI フレームワークがなくてもできるよ / Building CLI Tools Without Frameworks
orgachem
PRO
17
3.6k
プロダクトという一杯を作る - プロダクトチームが味の責任を持つまでの煮込み奮闘記
hiliteeternal
0
370
LLMは麻雀を知らなすぎるから俺が教育してやる
po3rin
3
1.9k
大規模FlutterプロジェクトのCI実行時間を約8割削減した話
teamlab
PRO
0
440
AWS Summit Japan 2024と2025の比較/はじめてのKiro、今あなたは岐路に立つ
satoshi256kbyte
1
260
Featured
See All Featured
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
8
750
Making the Leap to Tech Lead
cromwellryan
134
9.5k
Art, The Web, and Tiny UX
lynnandtonic
301
21k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
34
3.1k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
26k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
35
2.5k
Designing for humans not robots
tammielis
253
25k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
16k
The Cost Of JavaScript in 2023
addyosmani
51
8.7k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
8
420
Gamification - CAS2011
davidbonilla
81
5.4k
A Modern Web Designer's Workflow
chriscoyier
695
190k
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'