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
AndroidでモダンREST通信してみたった
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
kobaken
November 23, 2015
Technology
270
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
複数行のTextで中間省略(…)を実現する
kobaken0029
0
69
Jetpack Compose Preview実践ガイド
kobaken0029
0
140
Serializable / Parcelableとの上手な付き合い方
kobaken0029
0
150
Kotlinの好きなところ
kobaken0029
0
1.3k
Compose駆動開発のためのマルチモジュール化
kobaken0029
0
260
DataStoreを導入してみた
kobaken0029
1
390
Epoxyを用いたレイアウト構築術
kobaken0029
1
260
Androidエンジニアが1週間でiOSアプリ開発を学び、1ヶ月で大規模アプリ開発にJOINした話
kobaken0029
0
3.8k
Modern REST Communicate for Android
kobaken0029
0
1.6k
Other Decks in Technology
See All in Technology
How Timee Delivers Day 1 Production Ready LLM Features
tomoyks
0
190
2026.06.13_AI時代に事業会社が「SIer出身エンジニア」を求める理由 / Why Businesses Seek Engineers with a System Integrator Background in the AI Era
jumtech
0
1.1k
自律型AIエージェントは何を破壊するのか
kojira
0
160
Claude Code×Terraform IaC テンプレート駆動開発
itouhi
1
510
AIの性能が向上しても未解決な組織の重大問題は何か?/An Unsolved Organizational Problem in the Age of AI
moriyuya
4
650
2026 TECHFRESH 畢業分享會 - 開發日常大解密!從領域驅動到企業級上線
line_developers_tw
PRO
0
920
新しいVibe Codingと”自走”について
watany
6
310
Amazon Bedrock AgentCore ワークショップ JAWS UG TOHOKU / amazon-bedrock-agentcore-workshop-jawsug-tohoku-2026
gawa
9
780
白金鉱業Meetup_Vol.24_「AIエージェントは分けるほど良い」は本当か? / Is it true that “the more you divide AI agents, the better”?
brainpadpr
1
350
20260619 私の日常業務での生成 AI 活用
masaruogura
1
160
AAIFに入ってみた ~内から見えるコミュニティ動向~
sato4
0
190
FinOps × AIエージェントで実現する コストインシデントの自動調査
oasis1994liveforever
0
130
Featured
See All Featured
From π to Pie charts
rasagy
0
210
GraphQLとの向き合い方2022年版
quramy
50
15k
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
2
850
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
2k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
2.9k
Scaling GitHub
holman
464
140k
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
4.2k
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
1
250
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
610
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
1
1.4k
Bash Introduction
62gerente
615
220k
jQuery: Nuts, Bolts and Bling
dougneiner
66
8.5k
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