List Installed Apps on SD CARD

General topics about the Android-Platform itself.
Coding issues please to the subforum right below.

List Installed Apps on SD CARD

Postby AndreySerj » Sat May 14, 2011 9:02 am

Hi All,
Could you please help me find a correct solution how to get a list of installed on sd card applications ?

Thanks a lot
AndreySerj
Developer
Developer
 
Posts: 31
Joined: Wed Dec 26, 2007 9:57 am
Location: Minsk

Top

Re: List Installed Apps on SD CARD

Postby AndreySerj » Mon May 16, 2011 2:01 pm

I can use calls like this:
Code: Select all
      List<ApplicationInfo> appInfos = packageManager.getInstalledApplications(PackageManager.GET_META_DATA);
      final SizeObserver observer = new SizeObserver();
      
      for (ApplicationInfo appInfo : appInfos) {
         if (PackageInfo.INSTALL_LOCATION_PREFER_EXTERNAL == appInfo.installLocation) {
                               ...
                        }
                }



But it returns only sd card installed apps with flag android:installLocation="preferExternal"
AndreySerj
Developer
Developer
 
Posts: 31
Joined: Wed Dec 26, 2007 9:57 am
Location: Minsk

Top

Return to General

Who is online

Users browsing this forum: No registered users and 6 guests