how to get installed applications that are plugin
<p>I have been trying to make my application get all installed packages and those that have plugin.(For instance the plugin for yahoo messenger).</p>

<pre><code> packageManager = getPackageManager();


      packss=packageManager.getInstalledPackages(0);
      installedapps=new ArrayList&lt;String&gt;();
      packageName=new ArrayList&lt;String&gt;();




    for(int i=0;i&lt;packss.size();i++){
        PackageInfo p=packss.get(i);
        ApplicationInfo a=p.applicationInfo;

        if ((!INCLUDE_SYSTEM_APPS) &amp;&amp; (a.flags &amp; ApplicationInfo.FLAG_SYSTEM)==1){
}
</code></pre>

<p>I am thinking the desired code should be in this If statement but am stuck.
Thanks Guys.</p>
