title: App Widget not displaying in ICS app drawer
body: <p>Has anyone experienced their app widget not being listed in the ICS app drawer?</p>
  
  <p>Originally I started this app for FroYo and below, which supports the app widget just fine. Along came Gingerbread and Honeycomb, those work too.</p>
  
  <p>The widget appears in the list in the emulator if I open up the "Widget Preview" app, however when you just open the drawer it isn't listed with the others. It does appear on Honeycomb. I don't (and others haven't also) see it on my Galaxy Nexus anywhere either.</p>
  
  <p>I've tried rebooting as I've seen that solving the problem for some people after initial installation. Also I do have a main activity with the action.MAIN/category.LAUNCHER intent filter since I have app activities, this isn't a widget only type of project.</p>
  
  <p>I'll post some snippets below, let me know if more is needed. My minSdkVersion is at 7 and targetSdkVersion at 15, project properties also has the target checked at 4.0.3. The installLocation attribute is set to auto.</p>
  
  <p>AndroidManifest.xml:</p>
  
  <pre><code>&lt;receiver android:name=".AppWidget" android:label="@string/one_cell_widget_label"&gt;
      &lt;intent-filter&gt;
          &lt;action android:name="android.appwidget.action.APPWIDGET_UPDATE" /&gt;
      &lt;/intent-filter&gt;
      &lt;intent-filter&gt;
          &lt;action android:name="com.frankcalise.h2droid.FORCE_WIDGET_UPDATE" /&gt;
      &lt;/intent-filter&gt;
      &lt;meta-data
          android:name="android.appwidget.provider"
          android:resource="@xml/one_cell_widget_settings" /&gt;
  &lt;/receiver&gt;
  </code></pre>
  
  <p>one_cell_widget_settings.xml:</p>
  
  <pre><code>&lt;appwidget-provider
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:initialLayout="@layout/one_cell_widget"
      android:minWidth="@dimen/one_cell_widget"
      android:maxHeight="@dimen/one_cell_widget"
      android:updatePeriodMillis="0" &gt;
  &lt;/appwidget-provider&gt;
  </code></pre>
  
  <p>one_cell_widget.xml:</p>
  
  <pre><code>&lt;LinearLayout
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/widget_background"
      android:orientation="vertical"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:padding="@dimen/widget_margin"
      android:background="@drawable/widget_background"&gt;
      &lt;TextView
          android:id="@+id/widget_title_text"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="@string/app_name"
          android:textColor="@android:color/black" /&gt;
      &lt;TextView
          android:id="@+id/widget_amount_text"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="@string/default_widget_amount"
          android:textSize="12sp"
          android:textColor="@color/amount_color" /&gt;
      &lt;TextView
          android:id="@+id/widget_percent_text"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="@string/default_widget_percent" /&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>and then obviously I implemented the class in AppWidget.java</p>
  
  <pre><code>public class AppWidget extends AppWidgetProvider
  </code></pre>
  
  <p>UPDATE:</p>
  
  <p>An important logcat message I found earlier today which helped me solve the issue:</p>
  
  <pre><code>06-01 14:41:31.606: E/AppsCustomizePagedView(199): Widget ComponentInfo{com.frankcalise.h2droid/com.frankcalise.h2droid.AppWidget} has invalid dimensions (108, 0)
  </code></pre>