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
Launcher shortcuts
Search
funnelbit
April 26, 2016
Technology
0
57
Launcher shortcuts
funnelbit
April 26, 2016
Tweet
Share
More Decks by funnelbit
See All by funnelbit
Hatena Engineer Seminar #9
funnelbit
5
7.3k
droidkaigi-2017-renovation
funnelbit
10
11k
Dart
funnelbit
0
250
BottomBarAndSnackBar
funnelbit
0
480
Dagger2 Optional bindings
funnelbit
0
570
WearableRecyclerView
funnelbit
1
790
QucikSettingsTileAPI
funnelbit
0
350
Mobile Vision
funnelbit
0
460
AwarenessAPI
funnelbit
0
140
Other Decks in Technology
See All in Technology
newmo の創業を支える Software Architecture と Platform Engineering
110y
5
460
自動化の第一歩 -インフラ環境構築の自動化について-
smt7174
1
120
正式リリースされた Semantic Kernel の Agent Framework 全部紹介!
okazuki
1
1.1k
Sleep-time Compute: LLM推論コスト削減のための事前推論
sergicalsix
1
100
テストって楽しい!開発を加速させるテストの魅力 / Testing is Fun! The Fascinating of Testing to Accelerate Development
aiandrox
0
170
猫でもわかるS3 Tables【Apache Iceberg編】
kentapapa
2
190
AndroidアプリエンジニアもMCPを触ろう
kgmyshin
2
650
Computer Use〜OpenAIとAnthropicの比較と将来の展望〜
pharma_x_tech
6
1k
大規模サーバーレスプロジェクトのリアルな零れ話
maimyyym
3
210
フルカイテン株式会社 エンジニア向け採用資料
fullkaiten
0
5.5k
伝わるコードレビュー
abenben
1
110
GraphQLを活用したリアーキテクチャに対応するSLI/Oの再設計
coconala_engineer
0
220
Featured
See All Featured
A Tale of Four Properties
chriscoyier
159
23k
How to Ace a Technical Interview
jacobian
276
23k
BBQ
matthewcrist
88
9.6k
The Straight Up "How To Draw Better" Workshop
denniskardys
233
140k
Git: the NoSQL Database
bkeepers
PRO
430
65k
Documentation Writing (for coders)
carmenintech
71
4.8k
Done Done
chrislema
184
16k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
8
700
Adopting Sorbet at Scale
ufuk
76
9.4k
Building Flexible Design Systems
yeseniaperezcruz
329
39k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
45
7.2k
Designing Experiences People Love
moore
142
24k
Transcript
-BVODIFSTIPSUDVUT
͜Μʹͪ w ଜྋ w גࣜձࣾͯͳ w )BUFOBGVOOFMCJU w 5XJUUFS!FYQFSPQFSP
"OESPJE/1SFWJFX w 7VMLBO w -BVODIFSTIPSUDVUT w &NPKJ6OJDPEFTVQQPSU w pY
"OESPJE/1SFWJFX w 7VMLBO w -BVODIFSTIPSUDVUT w &NPKJ6OJDPEFTVQQPSU w pY
-BVODIFSTIPSUDVUT w ΞΫγϣϯΛࢦఆ͠ɺΞϓϦΛϥϯνϟ͔Βى ಈͰ͖ΔΈ w ʮࠓҿΈձͰؼΓ͘ͳΔʯͱϝʔϧ w ࠷ޙͷηʔϒϙΠϯτ͔ΒήʔϜελʔτ
ొਓ w γϣʔτΧοτΛެ։͢Δଆ w 4IPSUDVU*OGP w 4IPSUDVU.BOBHFS w γϣʔτΧοτΛݺͼग़͢ଆ w
-BVODIFS"QQT
γϣʔτΧοτΛ ެ։͢Δଆ
4IPSUDVU*OGP Intent intent = new Intent(this, MainActivity.class); intent.putExtra(EXTRA_ITEM, "itemͩͧ");
return new ShortcutInfo.Builder(this) .setId("first") .setTitle("͜Μʹͪ") .setText("Αͬ͠Ό͍ͧ͘") .setWeight(3) .setIcon(Icon.createWithResource(this, R.mipmap.ic_launcher)) .setIntent(intent) .build();
4IPSUDVU.BOBHFS ShortcutManager shortcutManager = (ShortcutManager)getSystemService(Context.SHORTCUT_SERVICE) ; shortcutManager.addDynamicShortcut(shortcutInfo);
TIPSUDVU w BECTIFMMEVNQTZTTIPSUDVU
γϣʔτΧοτΛ ݺͼग़͢ଆ
-BVODIFS"QQTHFU4IPSUDPVU*OGP List<String> ids = new ArrayList<>(); ids.add("first"); List<ShortcutInfo> shortcuts
= mLauncherApps.getShortcutInfo( "com.experopero.launchershortcutsapplication", ids, userHandle ); for (ShortcutInfo shortcutInfo : shortcuts) { Log.e("title", shortcutInfo.getTitle()); }
-BVODIFS"QQTTUBSU4IPSUDVU mLauncherApps.startShortcut( shortcutInfo.getPackageName(), shortcutInfo.getId(), null, null, userHandle);
-BVODIFS"QQT4IPSUDVU2VFSZ LauncherApps.ShortcutQuery query = new LauncherApps.ShortcutQuery(); query.setPackage("com.experopero.hogeapp"); // query.setActivity(new ComponentName(“packageName”,
“ActivityName”)) // query.setChangedSince(long) query.setQueryFlags(LauncherApps.ShortcutQuery.FLAG_GET_DYN AMIC);
-BVODIFS"QQHFU4IPSUDVUT List<ShortcutInfo> shortcuts = mLauncherApps.getShortcuts( query, mUserManager.getUserProfiles().get(0)); …
⾠ w େͳใΛγϣʔτΧοτͷதʹೖΕͳ͍ w γϣʔτΧοτҰͭͷΞϓϦʹ͖ͭ·Ͱ w σϑΥϧτͷϥϯνϟͷΈڐՄ͞ΕΔ"1*͋Δ w HFU4IPSUDVU*OGP HFU4IPSUDVUT
HFU4IPSUDVU*DPO3FT*Eʜ
ॴײ w ԿͷͨΊͷΈͳͷ͔ʁ w %5PVDIΈ͍ͨͳͷ͕དྷΔʁ
͋Γ͕ͱ͏͍͟͝·ͨ͠