TWiStErRob / net.twisterrob.libraries

1 stars 0 forks source link

ChooserActivity limits initial intents to 2 since API 29 #76

Closed TWiStErRob closed 1 year ago

TWiStErRob commented 1 year ago

Documented: https://developer.android.com/reference/android/content/Intent#EXTRA_INITIAL_INTENTS

You can choose up to two additional activities to show before the app suggestions (the limit of two additional activities starts in Android 10).

Code: com.android.internal.app.ChooserActivity#MAX_EXTRA_INITIAL_INTENTS = 2.

No mention at:

Potential solutions:

TWiStErRob commented 1 year ago

~Probably related https://github.com/TWiStErRob/net.twisterrob.inventory/issues/191~ (no it's not, that one is a simple UI event listener glitch)

TWiStErRob commented 1 year ago

So based on Google issue tracker it's the usual cluster-bug: https://issuetracker.google.com/issues/134367295 everyone is saying this is infeasible, but Google just says it was intentional. Since 29 there have been 5 more releases and the situation didn't change.

TWiStErRob commented 1 year ago

For camera intents there's also this beauty, even when using Intent.createChooser: https://developer.android.com/about/versions/11/behavior-changes-11#media-capture source: https://stackoverflow.com/a/63449581/253468 details: https://commonsware.com/blog/2020/08/16/action-image-capture-android-r.html

TWiStErRob commented 1 year ago

Interesting links: