0

How can I get the list of UID (the list of apps installed in Android ) device.

David Prun
  • 8,203
  • 16
  • 60
  • 86

1 Answers1

2

The UID of an application can be found in the ApplicationInfo class. Fetch it for all the applications on a device like this:

List<ApplicationInfo> appsInfo = context.getPackageManager()
     .getInstalledApplications(PackageManager.GET_UNINSTALLED_PACKAGES); 
Graeme Duncan
  • 8,166
  • 2
  • 20
  • 13