Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter list of target activities displayed in chooser dialog #1

Open
javajack opened this issue Apr 13, 2015 · 2 comments
Open

Filter list of target activities displayed in chooser dialog #1

javajack opened this issue Apr 13, 2015 · 2 comments

Comments

@javajack
Copy link

Can share intent builder be leveraged for a specific app ?

What is the usecase ?
I am creating a non standard share intent builder with image and text, it works fine with twitter and whatsapp. But not with facebook for obvious reasons, it crashes the sharing UX.

Can you create the intent builder in way that it would allow as to limit the list of target activities ( like whatsapp or twitter etc )

@cketti
Copy link
Owner

cketti commented Apr 13, 2015

It is possible to configure the chooser intent to only display certain target activities. I'll add support for that in a future version.

@cketti cketti changed the title Is it feasible for you to allow the specific intent targets ? Filter list of target activities displayed in chooser dialog Apr 13, 2015
@javajack
Copy link
Author

"Filter list of target activities displayed in chooser dialog" is a correct and most relevant title :)

Just make sure that users are able to see only those activities which are present in the app.

If I pass on say "com.twitter.android,com.facebook.katana,com.whatsapp.android and org,reddit" as my list of activities to the builder, It should check and filter out these input activities as well if they are not installed in the app.

And finally last option should be "other" where a generic chooser would appear with all possible activities like it appears right now :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants