Run specify app which installed in phone
<p>i want to create an app with function : when i click button,an app that i installed will run (example <a href="https://play.google.com/store/apps/details?id=tunein.player&amp;feature=search_result#?t=W251bGwsMSwxLDEsInR1bmVpbi5wbGF5ZXIiXQ.." rel="nofollow">this app</a> )</p>

<p>I wrote code using getInstalledApplications (button is aupeo),but don't know how to call app,please help me</p>

<pre><code>aupeo.setOnClickListener(new View.OnClickListener() {

        public void onClick(View v) {
            final PackageManager pm = getPackageManager();
            List&lt;ApplicationInfo&gt; packages = pm.getInstalledApplications(PackageManager.GET_META_DATA);

            for (ApplicationInfo packageInfo : packages) {

                Intent intent = pm.getLaunchIntentForPackage(packageInfo.packageName);   
                if (intent != null)  {
                  intent.addCategory(Intent.CATEGORY_LAUNCHER);
                  startActivity(intent);  
                }          
                }


        }

    });
</code></pre>
