title: Widget onUpdate called when Configuration Activity is launched
body: <p>I'm implementing a widget and I'm facing the following problems:</p>
  
  <p><strong>1)</strong> <code>onUpdate</code> is called when I add the widget to the home screen, even if I specified a Configuration Activity. As soon as I add it to the home screen, the <code>APPWIDGET_ENABLED</code> broadcast is sent, followed by the <code>APPWIDGET_UPDATE</code> and then the configuration activity is launched.. Is this a bug? How should I understand in the <code>onUpdate</code> method that is being invoked before the configuration activity has returned? I can do it through a shared preference value, but I'd like it to behave as written on the developer guide, i.e. the <code>onUpdate</code> method should not be called.</p>
  
  <p><strong>2)</strong> <code>onUpdate</code> is not called every <code>updatePeriodMillis</code> seconds, which have been set to <code>10000</code>, i.e. <code>10</code> seconds for testing purposes.. Did I miss something in the <code>receiver</code> declaration within the Manifest file? I keep receiving the Lint warning <em>Exported receiver does not require permission</em> but I think this is a Lint issue and not my fault.
  <strong>EDIT</strong>: I've just found this within the reference docs: <em>Note: Updates requested with updatePeriodMillis will not be delivered more than once every 30 minutes.</em> So it is correct that the widget is not updated how often I'd specified and I've changed the time to <code>1800000</code> milliseconds.</p>
  
  <p><strong>3)</strong> I want to deliver my own broadcast action to the widget provider, is it correct to add another <code>receiver</code> block in the Manifest targeting the same provider class or should I add only another intent action within the <code>intent-filter</code> that contains the <code>APPWIDGET_UPDATE</code> action? BTW, I've commented my second <code>receiver</code> block and it is not the cause of the problems above. I created another <code>receiver</code> block because I wanted to declare it as not exported, in order to let the <code>intent-filter</code> action be triggered only by my app code and not anyone else.</p>
  
  <p><strong>AndroidManifest.xml</strong></p>
  
  <pre class="lang-xml prettyprint-override"><code>    &lt;receiver android:name="MyWidgetProvider" 
          android:exported="true"&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/my_widget_info" /&gt;
      &lt;/receiver&gt;
      &lt;receiver android:name="MyWidgetProvider" 
          android:exported="false"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="org.test.mywidget.FORCE_SMALL_WIDGET_UPDATE" /&gt;
          &lt;/intent-filter&gt;
      &lt;/receiver&gt;
  </code></pre>
  
  <p><strong>my_widget_info.xml</strong></p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"
      android:minWidth="294dp"
      android:minHeight="110dp"
      android:updatePeriodMillis="1800000"
      android:initialLayout="@layout/my_widget_layout"
      android:configure="org.test.mywidget.MyWidgetConfiguration" 
      android:resizeMode="none"&gt;
  &lt;/appwidget-provider&gt;
  </code></pre>