On Android, there is a common solution to get the list of apps using:
PackageManager pm=getPackageManager();
List<ApplicationInfo> packages=pm.getInstalledApplications(PackageManager.GET_META_DATA)
After this query, some of the ApplicationInfo objects get their field "metadata" being filled with stuff.
My question is simple:
What is the purpose of this field?
When should we use it, and do we really need it ?
Also, what is the meaning of just using 0 as the flags? will it get all of the apps?