How to query for all the different app shortcuts on my device (Not just from my own app)

I would like to know if my device has any app shortcuts saved on the desktop. (Not necessarily from my own app, but any app on the device).
I am looking into Android.Content.PM.ShortcutManager, but it is returning zero results (tried shortcutManager.DynamicShortcuts, as well as shortcutManager.PinnedShortcuts).
I know that I have shortcuts created by another app, and saved onto my home screen inside a folder. I am expecting to fetch that list.

Any thoughts. I must have a way to fetch this information.

Answers

  • LeonLuLeonLu Member, Xamarin Team Xamurai

    No, we cannot get other application's shortcuts.

    If you use shortcutManager.DynamicShortcuts, it will come back shortcuts from your application.

    I write a demo to test DynamicShortcuts. Here is running GIF.

Sign In or Register to comment.