Android Tutorial 65 - How to Check if an Intent is Supported?

Опубликовано: 25 Март 2014
на канале: Code Here Now
728
1

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.


Смотрите видео Android Tutorial 65 - How to Check if an Intent is Supported? онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Code Here Now 25 Март 2014, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 728 раз и оно понравилось 1 людям.