PendingIntent not launching /data apps
<p>I have a keyguard appwidget where I'm launching a few different Intents. It seems I can launch /system apps (mms, settings etc. ) . but not /data apps ( chrome for example )</p>

<p>I have the following PendingIntentTemplate defined:</p>

<pre><code>Intent startApplicationIntent = new Intent();   
PendingIntent pendingIntent = PendingIntent.getActivity(mContext, 0, startApplicationIntent, 0);
mainLayout.setPendingIntentTemplate(R.id.stackview, pendingIntent);
</code></pre>

<p>In my RemoteViewsFactory, I have the following FillInIntent:</p>

<pre><code>Intent i = pm.getLaunchIntentForPackage(pkgName);
i.addCategory(Intent.CATEGORY_LAUNCHER);            
i.setAction(Intent.ACTION_MAIN);
stackviewRemoteView.setOnClickFillInIntent(R.id.stackview_image, i);
</code></pre>

<p>There are no errors, the intent just unlocks the keyguard.
It also definitely isn't null as the toString() method shows the following:</p>

<pre><code>Intent { act=android.intent.action.MAIN cat=    
[android.intent.category.LAUNCHER] flg=0x10000000       
pkg=com.android.chrome    
cmp=com.android.chrome/com.google.android.apps.chrome.Main }
</code></pre>

<p>Is there something special I need to do for non-system apps? I thought getLaunchIntentForPackage would give me everything I needed to launch an app the same way as it would launch if it were selected from the home screen.</p>
