title: Please help with very simple android widget button click. Getting very frustrated. :(
body: <p>I have poured over every example that I can find and I have gone through the official documentation from google.  All I am trying to do is create a toast notification from a button click on a widget.</p>
  
  <p>I can get the widget (and button) to appear but I can't get my intent to fire.  I have seen several examples that show doing this different ways but I just can't get it to work.  I haven't felt this helpless with coding in a long time and I'm starting to feel dumb.</p>
  
  <p>This is what I have so far:</p>
  
  <pre><code>public class simpleclick extends AppWidgetProvider {
      /** Called when the activity is first created. */
  
      @Override
      public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) {
          final int N = appWidgetIds.length;
  
          Toast.makeText(context, "doing on update", Toast.LENGTH_SHORT).show();
  
          for (int i=0; i&lt;N; i++) {
  
              int appWidgetId = appWidgetIds[i];
  
              Intent intent = new Intent(context, simpleclick.class);
              intent.setAction("ham");
              PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, intent, 0);
  
              RemoteViews views = new RemoteViews(context.getPackageName(), R.layout.main);
              views.setOnClickPendingIntent(R.id.Timm, pendingIntent);
  
              appWidgetManager.updateAppWidget(appWidgetId, views);
  
          }
  
      }
  
      //@Override
      public void onReceive(Context context, Intent intent) {
       // TODO Auto-generated method stub
  
       Toast.makeText(context, "action is: " + intent.getAction(), Toast.LENGTH_SHORT).show();
  
       super.onReceive(context, intent);
  
      }
  
  }
  </code></pre>
  
  <p>My manifest:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
        package="com.tblabs.simpleclick"
        android:versionCode="1"
        android:versionName="1.0"&gt;
      &lt;application android:icon="@drawable/icon" android:label="@string/app_name"&gt;
          &lt;receiver android:name="simpleclick"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.appwidget.action.APPWIDGET_UPDATE" /&gt;
          &lt;/intent-filter&gt;
          &lt;meta-data android:name="android.appwidget.provider" 
              android:resource="@xml/simpleclick" /&gt;
          &lt;/receiver&gt;
  
      &lt;/application&gt;
      &lt;uses-sdk android:minSdkVersion="5" /&gt;
  
  &lt;/manifest&gt; 
  </code></pre>
  
  <p>I would appreciate some help!</p>
  
  <p>Thanks,
  Wendy</p>