There are 3 types of apps in android
- Android System apps
- Apps installed from Android Play Store
- Apps installed through local apk (usually installed by developers or any other source)
I get the 1st category of apps packages (i.e. System apps) using code below
private boolean isSystemPackage(ResolveInfo ri) {
return (ri.activityInfo.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0;
}
I want to get packages of 2nd category of apps on Android Device (i.e. Apps installed from Android Play Store)....please tell me how do i get that?
Even if i get local installed apps (i.e. 3rd category) then i can also find my solution by ignoring 1st and 3rd category of apps packages from all packages....