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
54
Launcher shortcuts
funnelbit
April 26, 2016
Tweet
Share
More Decks by funnelbit
See All by funnelbit
Hatena Engineer Seminar #9
funnelbit
5
7.2k
droidkaigi-2017-renovation
funnelbit
10
10k
Dart
funnelbit
0
250
BottomBarAndSnackBar
funnelbit
0
470
Dagger2 Optional bindings
funnelbit
0
540
WearableRecyclerView
funnelbit
1
770
QucikSettingsTileAPI
funnelbit
0
350
Mobile Vision
funnelbit
0
440
AwarenessAPI
funnelbit
0
130
Other Decks in Technology
See All in Technology
社外コミュニティで学び社内に活かす共に学ぶプロジェクトの実践/backlogworld2024
nishiuma
0
260
.NET 9 のパフォーマンス改善
nenonaninu
0
840
レンジャーシステムズ | 会社紹介(採用ピッチ)
rssytems
0
150
サイボウズフロントエンドエキスパートチームについて / FrontendExpert Team
cybozuinsideout
PRO
5
38k
Oracle Cloud Infrastructure:2024年12月度サービス・アップデート
oracle4engineer
PRO
0
170
re:Invent をおうちで楽しんでみた ~CloudWatch のオブザーバビリティ機能がスゴい!/ Enjoyed AWS re:Invent from Home and CloudWatch Observability Feature is Amazing!
yuj1osm
0
120
GitHub Copilot のテクニック集/GitHub Copilot Techniques
rayuron
27
12k
10分で学ぶKubernetesコンテナセキュリティ/10min-k8s-container-sec
mochizuki875
3
330
C++26 エラー性動作
faithandbrave
2
720
TSKaigi 2024 の登壇から広がったコミュニティ活動について
tsukuha
0
160
組織に自動テストを書く文化を根付かせる戦略(2024冬版) / Building Automated Test Culture 2024 Winter Edition
twada
PRO
13
3.7k
WACATE2024冬セッション資料(ユーザビリティ)
scarletplover
0
190
Featured
See All Featured
Bash Introduction
62gerente
608
210k
Documentation Writing (for coders)
carmenintech
66
4.5k
Making Projects Easy
brettharned
116
5.9k
Building Flexible Design Systems
yeseniaperezcruz
327
38k
Stop Working from a Prison Cell
hatefulcrawdad
267
20k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
44
9.3k
Designing for Performance
lara
604
68k
Optimizing for Happiness
mojombo
376
70k
How to Ace a Technical Interview
jacobian
276
23k
Designing for humans not robots
tammielis
250
25k
Being A Developer After 40
akosma
87
590k
BBQ
matthewcrist
85
9.4k
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Έ͍ͨͳͷ͕དྷΔʁ
͋Γ͕ͱ͏͍͟͝·ͨ͠