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
53
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
460
Dagger2 Optional bindings
funnelbit
0
530
WearableRecyclerView
funnelbit
1
770
QucikSettingsTileAPI
funnelbit
0
340
Mobile Vision
funnelbit
0
430
AwarenessAPI
funnelbit
0
130
Other Decks in Technology
See All in Technology
オープンソースAIとは何か? --「オープンソースAIの定義 v1.0」詳細解説
shujisado
10
1.1k
Why App Signing Matters for Your Android Apps - Android Bangkok Conference 2024
akexorcist
0
130
リンクアンドモチベーション ソフトウェアエンジニア向け紹介資料 / Introduction to Link and Motivation for Software Engineers
lmi
4
300k
AWS Lambdaと歩んだ“サーバーレス”と今後 #lambda_10years
yoshidashingo
1
180
心が動くエンジニアリング ── 私が夢中になる理由
16bitidol
0
100
Security-JAWS【第35回】勉強会クラウドにおけるマルウェアやコンテンツ改ざんへの対策
4su_para
0
180
適材適所の技術選定 〜GraphQL・REST API・tRPC〜 / Optimal Technology Selection
kakehashi
1
690
rootlessコンテナのすゝめ - 研究室サーバーでもできる安全なコンテナ管理
kitsuya0828
3
390
Making your applications cross-environment - OSCG 2024 NA
salaboy
0
190
日経電子版のStoreKit2フルリニューアル
shimastripe
1
140
ノーコードデータ分析ツールで体験する時系列データ分析超入門
negi111111
0
420
SREが投資するAIOps ~ペアーズにおけるLLM for Developerへの取り組み~
takumiogawa
1
430
Featured
See All Featured
The Invisible Side of Design
smashingmag
298
50k
Keith and Marios Guide to Fast Websites
keithpitt
409
22k
Documentation Writing (for coders)
carmenintech
65
4.4k
Building a Modern Day E-commerce SEO Strategy
aleyda
38
6.9k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
506
140k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.3k
Fontdeck: Realign not Redesign
paulrobertlloyd
82
5.2k
How GitHub (no longer) Works
holman
310
140k
The Illustrated Children's Guide to Kubernetes
chrisshort
48
48k
How to Ace a Technical Interview
jacobian
276
23k
StorybookのUI Testing Handbookを読んだ
zakiyama
27
5.3k
Designing for Performance
lara
604
68k
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Έ͍ͨͳͷ͕དྷΔʁ
͋Γ͕ͱ͏͍͟͝·ͨ͠