Slide 17
Slide 17 text
%ZOBNJD4IPSUDVU
ShortcutManager shortcutManager = getSystemService(ShortcutManager.class);
ShortcutInfo kan = new ShortcutInfo.Builder(this, “kan”)……
ShortcutInfo sai = new ShortcutInfo.Builder(this, “sai”)……
ShortcutInfo mobairu = new ShortcutInfo.Builder(this, “mobairu”)……
ShortcutInfo apuri = new ShortcutInfo.Builder(this, “apuri”)……
ShortcutInfo kenkyu = new ShortcutInfo.Builder(this, “kenkyu”)……
ShortcutInfo kai = new ShortcutInfo.Builder(this, “kai”)……
// IllegalArgumentException will be thrown.
// Max shortcut num is 5. (include static shortcuts)
shortcutManager.setDynamicShortcuts(Arrays.asList(
kan,
sai,
mobairu,
apuri,
kenkyu,
kai
));
.BJO"DUJWJUZKBWB