get Installed apps from package name

view story

http://stackoverflow.com – i have tried the code i pasted below ..but that gives me every application installed but then i need to check each of the app is mine or not by checking with the package name...Is there a code to where i can pass the package name to the phone system so that it gives me all the apps installed based on that package name. PackageManager manager = getPackageManager(); Intent mainIntent = new Intent(Intent.ACTION_MAIN, null); mainIntent.addCategory(Intent.CATEGORY_DEFAULT); final List<ResolveInfo> apps = manager.queryIntentActivities(mainIntent, 0); Collection (HowTos)