WAI
Status Update
Comments
am...@google.com <am...@google.com>
lb...@gmail.com <lb...@gmail.com> #2
I'm also seeing this issue, specifically under low-memory conditions and only on a Nexus 5x running Nougat. I was trying to launch a camera intent from a fragment. I've attached my log as well.
am...@google.com <am...@google.com> #3
I'm seeing this crash too, specifically on build NBD90W of Android on the nexus 5x (october security patches). We're not using a camera intent, but we're using the camera API directly.
om...@google.com <om...@google.com> #4
Oh, good point -- I, too, am running build NBD90W with the October 5 security patches.
lb...@gmail.com <lb...@gmail.com> #5
Same here and my app uses Google Maps and a few images. It only crashes upon exit. My device is also Nexus 5X w/ build number NBD90W.
ja...@gmail.com <ja...@gmail.com> #6
I am on NBD90W as well.
lb...@gmail.com <lb...@gmail.com> #7
I was the reporter for the question on Stackoverflow -- I'm definitely glad other people are having this issue. Hopefully it can be resolved!
Description
The only thing that can be removed is dynamic shortcuts, which are different. Using those on pinned shortcuts won't do anything:
ShortcutManager shortcutManager = (ShortcutManager) getSystemService(SHORTCUT_SERVICE);
final List<ShortcutInfo> pinnedShortcuts = shortcutManager.getPinnedShortcuts();
final ArrayList<String> shortcutIdsToRemove = new ArrayList<>();
for (ShortcutInfo pinnedShortcut : pinnedShortcuts) {
final Intent pinnedShortcutIntent = pinnedShortcut.getIntent();
shortcutIdsToRemove.add(pinnedShortcut.getId());
}
shortcutManager.disableShortcuts(shortcutIdsToRemove);
shortcutManager.removeDynamicShortcuts(shortcutIdsToRemove);
As an example of why this would be useful, suppose I offer to get to a direct screen of my app, through a pinned shortcut that is offered to the user via the app, and on the next version of the app, this screen is gone. What I'd like to do is to remove it, because it won't do anything.
it also can't be updated, for the same reason.
Please add API to remove and update pinned shortcuts.