Creating simple widget for Android. Why is the widget always 1x1 cells big?
<p>After installing on my phone (also happens on emulator), the Widget is only 1x1 cells.</p>

<p>I have tried uninstalling the app completely, and then installing it again, but the widget is still only 1x1 cells big when I create an instance of it.</p>

<p>Any ideas?</p>

<p>Here is my provider info XML file (callernator_widget_provider_info.xml):</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"&gt;
    android:minWidth="294dp"
    android:minHeight="294dp"
    android:updatePeriodMillis="86400000"
    android:initialLayout="@layout/widgetmain"
&lt;/appwidget-provider&gt;
</code></pre>

<p>Here is the layout file:</p>

<pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/linearLayout1"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="vertical" &gt;

    &lt;Button
        android:id="@+id/button1"
        android:layout_width="fill_parent"
        android:layout_height="32dp"
        android:text="Bertus van Zyl" /&gt;

    &lt;Button
        android:id="@+id/button2"
        android:layout_width="fill_parent"
        android:layout_height="32dp"
        android:text="Button" /&gt;

    &lt;Button
        android:id="@+id/button3"
        android:layout_width="fill_parent"
        android:layout_height="32dp"
        android:text="Button" /&gt;

&lt;/LinearLayout&gt;
</code></pre>

<p>Here is my manifest file:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="android.callernator"
      android:versionCode="1"
      android:versionName="1.0"&gt;
    &lt;uses-permission 
      android:name="android.permission.READ_CONTACTS"&gt;
    &lt;/uses-permission&gt;
    &lt;application android:icon="@drawable/icon" android:label="@string/app_name"&gt;
        &lt;receiver android:name=".CallernatorWidgetProvider" &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/callernator_widget_provider_info" /&gt;      
        &lt;/receiver&gt; 
        &lt;activity android:name=".CallernatorActivity" android:label="@string/app_name"&gt;
            &lt;intent-filter&gt;
                &lt;action android:name="android.intent.action.MAIN" /&gt;
                &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
            &lt;/intent-filter&gt;
        &lt;/activity&gt;
    &lt;/application&gt;
&lt;/manifest&gt; 
</code></pre>
