This is an excerpt from Learn by Doing - Android for Beginners on Udemy.
https://www.udemy.com/learn-by-doing-...
This lecture will teach you the RIGHT way to check if an intent is supported on the target device.
Things to Remember
-----------------------------
1. Get a PackageManager instance from the Context by calling the Context.getPackageManager() method.
2. Query for the Activities that support an intent by using the PackageManager.queryIntentActivities(Intent, int) method.
3. Use the PackageManager.MATCH_DEFAULT_ONLY named constant for the flags parameter.
Watch video Android Tutorial 65 - How to Check if an Intent is Supported? online without registration, duration hours minute second in high quality. This video was added by user Code Here Now 25 March 2014, don't forget to share it with your friends and acquaintances, it has been viewed on our site 728 once and liked it 1 people.