Possible Duplicate:
How do I check if an app is a non-system app in Android?
At the moment this code returns everything including system apps like the Android System and clock.
public List<ApplicationInfo> getApps() {
final PackageManager pm = context.getPackageManager();
List<ApplicationInfo> packages = pm
.getInstalledApplications(PackageManager.GET_META_DATA);
return packages;
}
How can I differentiate between these and user-installed apps?