I would like to find the packages that have "Launch by Default" set in the Android application manager. The application manager typically says something like "This app is set to open by default for some actions" and has a "Clear defaults" button for these packages.
As an example this image shows the application manager page for Adobe Reader, which I have set as the default for opening PDF files. I would like to be able to determine programmatically that this package (com.adobe.reader) has a "Launch by Default" set and, more generally, all the packages that have such a "Launch by Default" set. (Clearly the Application Manager can do this.)
I can get all the installed packages via:
List<PackageInfo> packages = getPackageManager() .getInstalledPackages(0);
How do I tell which ones have "Launch by Default" set? Is there a way to also find the actions?
Thanks.