Blu
Blu

Reputation: 4056

Get user installed app information [windows phone]

i have a code for android below

List<PackageInfo> PackList = getPackageManager().getInstalledPackages(0);
for (int i=0; i < PackList.size(); i++)
{
    PackageInfo PackInfo = PackList.get(i);
    if ( ( (PackInfo.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0) != true)
    {
        String AppName = PackInfo.applicationInfo.loadLabel(getPackageManager()).toString();
        Log.e("App" + Integer.toString(i), AppName);
    }
}

above code gets the information of user installed apps. So my question is simple how to achieve same functionality in windows phone (Native or Hybrid any one)?

Upvotes: 0

Views: 96

Answers (2)

plokmijnuhb
plokmijnuhb

Reputation: 46

Please use below code to retrieve information about all packages installed across all users.

IEnumerable<Package> apps = Windows.Phone.Management.Deployment.InstallationManager.FindPackages();

reference link

Upvotes: 1

A.K.
A.K.

Reputation: 3331

This is not possible.There is no such communication existing in the present versions. Having access to this information would be a potential data privacy issue. This functionality isn't available for 3rd party apps on Windows Phone 7. You can pass along data using app2app functionality(available only for wp8) (Check this link).

as far as I know You can only get a list of apps on the phone that are published by you. You do not have access to a complete list of apps on the phone.

Upvotes: 1

Related Questions