android/storage-samples

Question: for "SharingShortcuts", how do I set which items to show on the sharing dialog?

Closed this issue · 2 comments

Previously, we could use EXTRA_INITIAL_INTENTS to choose exactly which exact intents items to show, and in which order:

https://stackoverflow.com/a/41140508/878126

How can we do the same now when choosing to share?

On Q, now when I use EXTRA_INITIAL_INTENTS, it can show only up to 2 items, and that's it. Can't show more than that, and it's terrible.

Here's what happens when I try to show 3 items, of "com.ghisler.android.TotalCommander", "com.google.android.gm","com.whatsapp" :

android-sample-file-provider.zip

Answered on Stack Overflow so I'm closing this.