In code listing 24.3, I’m curious as to why the call to queryIntentActivities
List activities = pm.queryIntentActivities(startupIntent, 0);
uses the value 0 as the argument to the flags parameter instead of one of the constants that are defined in the PackageManager class. None of the constants mentioned in the documentation for that function
(PackageManager | Android Developers(android.content.Intent, int))
has a value of 0. Since queryIntentActivities has been around since API level 1, is it a legacy argument value?