How to find installed applications in Android?
I want to get the name and package name of a third party application installed in Android. I have tried but I got the name of all applications (third party and pre installed). How can I identify whether an application is a system application or an other application? Nitin This will do the trick...cheers :) PackageManager pm = getPackageManager(); List<PackageInfo> list = pm.getInstalledPackages(0); for (PackageInfo pi : list) { ApplicationInfo ai; try { ai = pm.getApplicationInfo(pi.packageName, 0); System.out.println(">>>>>>packages is<<<<<<<<" + ai.publicSourceDir); // this condition if