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
Grenade - Type safe intent buidler
Search
Keisuke Kobayashi
October 26, 2016
Programming
240
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Grenade - Type safe intent buidler
potatotips 34
Keisuke Kobayashi
October 26, 2016
More Decks by Keisuke Kobayashi
See All by Keisuke Kobayashi
仕様駆動開発による爆速プロダクト開発 / Bakusoku Spec Driven Development
kobakei
0
120
AI 1st でエンタープライズ SaaS を立ち上げる / AI 1st Enterprise SaaS
kobakei
1
310
プロダクト開発をAI 1stに変革する〜SaaS is dead時代で生き残るために〜 / AI 1st Product Development
kobakei
0
3.1k
今日から始める依存性の注入 / First Time Dependency Injection
kobakei
26
7.8k
iOSアプリの技術的負債をどう返済したか / How to repay the technical debt of iOS app
kobakei
2
1k
iOSアプリ内で不正なSSL証明書を検知する / SSL Pinning for iOS apps
kobakei
34
12k
Kyashアプリ開発の現場
kobakei
4
3k
Review of Google I/O 2017 & Prepare for Google I/O 2018
kobakei
0
350
APIクライアントをCodableで置き換えた話
kobakei
0
1.7k
Other Decks in Programming
See All in Programming
世界の中心で、AI(App Intents)をさけぶ ー App Intents中心設計の実践ガイド
touyou
0
620
巨大モノリシックアプリ モダン化大作戦
ktcryomm
1
1.1k
Snowflakeで業務アプリを作ろう。 Snowflakeのアプリ機能解説&実践ガイド
ayumu_yamaguchi
1
280
TiDB Cloudのカスタムコントローラーによるオートスケール対応
takaidohigasi
0
130
20260914 AIエージェント時代のPlatform Engineering LLM基盤とプロダクトの責務境界線
kanfab1
7
2.1k
Heart of Swift Concurrency
koher
0
920
Omarchy Tokyo やると聞いて UMPC 買ってセットアップしてきた
mtsmfm
0
150
FreeBSDでZabbixを動かす
kenkino
0
310
LL言語やWebフレームワークのPostgreSQL対応 〜DBの機能がユーザーに届くまで〜
kentaroutakeda
1
150
大喜利で理解するLLM as a Judge / Understanding LLM-as-a-Judge through Ogiri
rockname
0
150
{ Android | Kotlin } Gradle Plugin in 2026
ryunen344
1
330
モデルのリファクタリングが難しいと思ったら、そもそも複雑だったのはビジネス仕様だった ? / is-the-business-domain-the-real-complexity
hatsu38
0
360
Featured
See All Featured
Intergalactic Javascript Robots from Outer Space
tanoku
273
27k
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
500
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
300
Navigating Team Friction
lara
192
16k
Making Projects Easy
brettharned
120
6.8k
Building a Scalable Design System with Sketch
lauravandoore
464
34k
The innovator’s Mindset - Leading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
340
Un-Boring Meetings
codingconduct
0
420
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
990
The Limits of Empathy - UXLibs8
cassininazir
1
680
The World Runs on Bad Software
bkeepers
PRO
72
12k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
Transcript
(SFOBEF 5ZQFTBGFJOUFOUCVJMEFS ,FJTVLF,PCBZBTIJ QPUBUPUJQT
,FJTVLF,PCBZBTIJ w (JU)VC 2JJUB!LPCBLFJ w 5XJUUFS!LTL@LCZT w $PVCJD *OD w
"OESPJE#BDLFOEFOHJOFFS
໌ࣔత*OUFOUͷ࡞Γํ
#BTJD Intent intent = new Intent(context, HogeActivity.class); startActivity(intent);
XJUIFYUSB Intent intent = new Intent(context, HogeActivity.class); intent.putExtra("name", "Takashi"); intent.putExtra("age",
30); startActivity(intent);
XJUIFYUSB Intent intent = new Intent(context, HogeActivity.class); intent.putExtra("name", "Takashi"); intent.putExtra("age",
30); startActivity(intent); String name = getIntent().getStringExtra("name"); int age = getIntent().getIntExtra("age", 0);
XJUIFYUSB Intent intent = new Intent(context, HogeActivity.class); intent.putExtra("name", "Takashi"); intent.putExtra("age",
30); startActivity(intent); String name = getIntent().getStringExtra("name"); int age = getIntent().getIntExtra("age", 0); w ͍ΖΜͳը໘ʹఆ͕ग़ͯདྷΔ
XJUIFYUSB Intent intent = new Intent(context, HogeActivity.class); intent.putExtra("name", "Takashi"); intent.putExtra("age",
30); startActivity(intent); String name = getIntent().getStringExtra("name"); int age = getIntent().getIntExtra("age", 0); w ͍ΖΜͳը໘ʹఆ͕ग़ͯདྷΔ w มΛ٧ΊΕͯίϯύΠϧΤϥʔग़ͳ͍
TUBUJDNFUIPE static void startActivity(Context context, String name, int age) {
Intent intent = new Intent(context, HogeActivity.class); intent.putExtra(KEY_NAME, "Takashi"); intent.putExtra(KEY_AGE, 30); context.startActivity(intent); } String name = getIntent().getStringExtra(KEY_NAME); int age = getIntent().getIntExtra(KEY_AGE, 0);
ͦ͏ͩɺࣗಈੜ͠Α͏
(SFOBEF IUUQTHJUIVCDPNLPCBLFJHSFOBEF
6TBHF @Navigator public class DetailActivity extends AppCompatActivity { // Required
params @Extra String name; // Optional params @Extra @Optional int age; ... }
6TBHF startActivity(new DetailActivityNavigator("Takashi") .age(30) .flags(Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT) .build(context);
6TBHF @Navigator public class DetailActivity extends AppCompatActivity { ... @Override
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Inject fields DetailActivityNavigator.inject(this, getIntent()); } }
4FWFSBMDPOTUSVDUPST @Navigator({ "foo,bar1", "foo,bar2" }) public class DetailActivity extends AppCompatActivity
{ @Extra String foo; @Extra int bar1; @Extra long bar2; ... }
4FWFSBMDPOTUSVDUPST startActivity(new DetailActivityNavigator(foo, bar1) .build(context)); startActivity(new DetailActivityNavigator(foo, bar2) .build(context));
8PSLXJUI1BSDFMFS @Navigator public class DetailActivity extends AppCompatActivity { // Use
parcelable entity as field @Extra User user; ... }
8PSLXJUI1BSDFMFS startActivity(new DetailActivityNavigator(new User()) .build(context));
None