Fastest way of getting a list of installed packages in an Android device
<p>I'm getting a list of packages installed in an Android devices very similar to the code here - <a href="http://www.androidsnippets.com/get-installed-applications-with-name-package-name-version-and-icon" rel="nofollow">http://www.androidsnippets.com/get-installed-applications-with-name-package-name-version-and-icon</a></p>

<p>The problem is that it takes quite a while to complete detection of all apps. I've discovered that the slow operations are those that call p.applicationInfo.loadLabel() and p.applicationInfo.loadIcon(). Once I comment those out and set them to dummy info, the detection is almost instantaneous.</p>

<p>Since I would still like to retrieve the app name and icon, I can't simply comment them out. Is there a faster way of retrieving this data?</p>

<p>Thanks.</p>
