Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
AndroidでモダンREST通信してみたった
Search
kobaken
November 23, 2015
Technology
280
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
AndroidでモダンREST通信してみたった
kobaken
November 23, 2015
More Decks by kobaken
See All by kobaken
DroidKaigi初登壇の舞台裏
kobaken0029
0
26
AIがレビューする時代に、 Androidエンジニアは何をレビューするのか 〜 土台づくりとレビュー再設計 〜
kobaken0029
3
1.4k
In the Age of AI Code Review, What Should Android Engineers Review? - Building the Foundation & Redesigning Code Review -
kobaken0029
0
42
複数行のTextで中間省略(…)を実現する
kobaken0029
0
90
Jetpack Compose Preview実践ガイド
kobaken0029
0
180
Serializable / Parcelableとの上手な付き合い方
kobaken0029
0
280
Kotlinの好きなところ
kobaken0029
0
1.4k
Compose駆動開発のためのマルチモジュール化
kobaken0029
0
280
DataStoreを導入してみた
kobaken0029
1
400
Other Decks in Technology
See All in Technology
調査タスクをAIと乗り切る 〜過去の調査をナレッジ化し 調査手順をスキルにする〜
mot_techtalk
1
120
freeeらしさをAIとともに作る / Creating the freee Experience with AI
ymrl
0
200
FinTech 1-2 : Overview of FinTech
ks91
PRO
0
150
Meet AgentCore Identity Consent Portal
hironobuiga
3
190
AI Made Us Faster at Solving the Wrong Problems
marceloancelmo
0
160
データ品質を壊しながらSnowflakeのAIに分析させてみた
kawanago
0
510
MCPゲートウェイを作って運用してわかったこと — Agent時代の権限管理の現在地
mtpooh
10
3.1k
2026-10-01_MagicPod_QAハーネスエンジニアリングとQA組織の未来像
ynisqa1988
1
530
IR Today: Theory, Practice, and Agents
dtunkelang
0
350
全社共通データ基盤をつくる。ソニーのDatabricks活用とデータガバナンス設計の裏側
sony
0
420
Codex概要
ymiya55
0
400
Deep Data Security 機能解説
oracle4engineer
PRO
2
700
Featured
See All Featured
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
28
3.7k
Why Our Code Smells
bkeepers
PRO
340
58k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.6k
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
590
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.8k
Digital Ethics as a Driver of Design Innovation
axbom
PRO
1
450
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
530
Building AI with AI
inesmontani
PRO
1
1.3k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
250
1.3M
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
580
Product Roadmaps are Hard
iamctodd
55
13k
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
620
Transcript
AndroidͰϞμϯͳREST௨৴ͯ͠Έͨͬͨ
Android
ࣗশAndroidMaster(স)͕
REST௨৴ΛΧϯλϯʹѻ͑Δ ࣮ͨͬͨ͠(ɾω<) ũųųƅƁ
ʊਓਓਓਓʊ ʼ REST ʻ ʉY^Y^Y^Yʉ
ιϑτΣΞΞʔΩςΫνϟ ͷ ελΠϧͷҰͭ
ҰߦͰݴ͏ͱ
Ϧιʔεॏࢹઃܭ
RESTful
Not RESTful
ίϨͰΘ͔Βͳ͍ਓ ϫγϫγMAXͰʙʂʂ ͦΜͳͷ͋Μ·Γʹ͜ʙʂʂ
ຊ
͜Ε͔ΒαϯϓϧΞϓϦΛ ࡞͍͖ͯ͠·͢
༏लͳϨϏϡϫʔͷྗΛ आΓͳ͕Β࣮͍͖ͯ͠·͢Αʂ
༻ϥΠϒϥϦͷհ
༻ϥΠϒϥϦ • OkHttp • Retrofit • RxAndroid • Butter Knife
• Lombok
Ͱૣ
gradleʹهड़ͯ͘͠Ͱ
build.gradle(appԼ)
None
༻APIհ
༻API • WeatherHacks
WebAPIͷInterface ࡞ΔͰ
WeatherHacksApi.java
ResponseObject(Entity) ࡞ΔͰ
ResponseObject.java
͜ΕͰ४උ͓̺
None
ͦΕ͡Όɺຊ൪ߦ͘Ͱ
͜Ε͔ΒΔ͜ͱ
ࡾߦͰ
Activity(Fragment)ʹ RestAdapterΛ࡞ͯ͠ subscribeʂ
MainActivity.java
MainActivity.java
MainActivity.java
͜Ε͚ͩʂ
ͱ
ࢥΘͤͯ
None
AndroidManifest.xmlʹ Internet௨৴ͷͨΊͷ Permissionهड़͕ඞཁͳΜʂ
AndroidManifest.xml
None
ΈΜͳϦΞΫςΟϒʹ REST௨৴͠Αͬˑ
None
https://github.com/kobaken0029/RestSample