Sometimes we can see that after clicking some “share” button, a list of sharable ways displays. And that list seems generated dynamically and not hard-coded.
For example, I have SpringPad installed on my phone, and some apps’ sharing function is able to share the content via SpringPad, but how could it know that I have SpringPad?
How to implement such a function? Thanks.
Here is the actual code from my Android app BBC News that does this. It shares the URL to the page. If the user has Facebook or Twitter apps installed they will be offered the opportunity to share to those services, as well as email etc.