Android Widget won't have a click
<p>Basically I've got this Widget, that's supposed to show a Toast once it is clicked.</p>

<pre><code>public class WidgetActivity extends AppWidgetProvider {


 @Override
 public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) {
     for (int i = 0; i &lt; appWidgetIds.length; i++) {  

         int appWidgetId = appWidgetIds[i];  
         Intent intent = new Intent(context, WidgetActivity.class);  
         intent.setAction("ActionOne");  
         PendingIntent pendingIntent = PendingIntent.getBroadcast(context, 0, intent, 0);  
         RemoteViews views = new RemoteViews(context.getPackageName(), R.layout.widget_layout);
         views.setOnClickPendingIntent(R.id.LinLayWiget, pendingIntent);  
         appWidgetManager.updateAppWidget(appWidgetId, views);  

     }

 }



 @Override  
 public void onReceive(Context context, Intent intent) {  

     Log.e("YYY","YYYY");
     Toast.makeText(context, "AAA", 1500).show();

     if (intent.getAction().equals("ActionOne")) {  

         Log.e("X","X");
         Toast.makeText(context, "I'm CLICKED!", 1500).show();

        }  
     super.onReceive(context, intent);  
 } 




}
</code></pre>

<p>manifest:</p>

<pre><code>...
        &lt;receiver android:name="WidgetActivity" android:label="FXMaster" android:icon="@drawable/assiconwi"&gt;

            &lt;meta-data
            android:name="android.appwidget.provider"
            android:resource="@xml/widgetprovider" /&gt;
                &lt;intent-filter&gt;
                        &lt;action android:name="android.appwidget.action.APPWIDGET_UPDATE"&gt;&lt;/action&gt;
                &lt;/intent-filter&gt;
        &lt;/receiver&gt;
...
</code></pre>

<p>But once the widget is clicked, nothing happens. Any ideas what might be wrong?</p>

<p>Thanks!</p>
