Wednesday, January 4, 2012

[android-developers] Update view of installed apps without reloading

I'm trying to list all the installed apps on a device using
getInstalledPackages, and this gives returns me a List of all
packages, including system apps and non-launchable apps.

I have 2 questions:

1. getInstalledPackages seem to take quite a bit of time to detect and
display all apps(about 8-10s for 200+ apps). Is it possible to make
this faster? Titanium Backup seems to list all apps instantaneously
when I tap the "Backup/Restore" tab. Android system's own "Manage
Applications" also seems to be much quicker at displaying the apps.

2. Like "Manage Applications", I would like to have a way to cull the
list so that I can in various tabs I can display apps based on their
properties, e.g. system vs user app, launchable vs non-launchable,
etc. I know how to do this via the applicationInfo.flags, but how do I
do this without running getInstalledPackages in the tab activity and
incurring the detection phase all over again? How can I pass the List
from 1 tab to another?

Thanks.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate