I am having two or more application having my specified category like

 <category android:name="com.myapp.MY_CATEGORY"/>

and I am able to get all packages having this category by :

 final Intent mainIntent = new Intent(Intent.ACTION_MAIN, null);
 mainIntent.addCategory("com.myapp.MY_CATEGORY");
 final List<ResolveInfo> pkgAppsList =getPackageManager().queryIntentActivities( mainIntent, 0);

Now i want to track my category application installation and delete from an app so i have made a broadcast receiver which will give me the package name of installed or deleted application but how can i gate the category of application using the package name to identify whether this is my app or not. can I make the broadcast receiver for specified category applications or if not how can i get the category from packagename.

Edit
Report