Is it possible to check how many applications are available on the device that are able to handle a particular file type? Basically, I have a button in my application that allows users to open-in another application, but I don’t want to show it if there are no possible applications to open the document in.
Share
Okay, so figured out an ugly ugly hack, but seemed to work… would love to find a better way.
Create header file for extension:
And implement:
Then use:
…
Please tell me there is a better way 🙂