title: Create widget with known AppWidgetProviderInfo
body: <p>Instead of showing the user a list of widget provider, I let him select one and then configure the widget, I manually load all widget providers and let the user drag and drop those widgets in my app.
  As soon as the user drops such an icon, I want to create and configure this widget. How do I do this?</p>
  
  <p><strong>Code with comments</strong></p>
  
  <pre><code>// 1) get a list of all app widget providers
  List&lt;AppWidgetProviderInfo&gt; providers = mAppWidgetManager.getInstalledProviders();
  
  // 2) Display the list to the user and let him select a widget provider =&gt; done via custom UI
  
  // 3) handle the user selected widget and create it
  // 3.1) create new widget id 
  int appWidgetId = mAppWidgetHost.allocateAppWidgetId();
  // 3.2) configure widget
  // ??? How do I do this now? appWidgetInfo.configure = null, so I can't use this as I  normally would do it
  // 4) Save the appWidgetId or delete it again depending on if the user finished the setup or cancelled it
  </code></pre>
  
  <p><strong>Normal approach (not important for my use case, but generally describes how it works)</strong></p>
  
  <ul>
  <li>create a widget id and then use the <code>AppWidgetManager.ACTION_APPWIDGET_PICK</code> intent to let the user pick a widget</li>
  <li>after selection, pass on the data to the <code>AppWidgetManager.ACTION_APPWIDGET_CONFIGURE</code> intent and use <code>intent.setComponent(appWidgetInfo.configure);</code></li>
  <li>after setup, save the widget id (or delete it if the user canceled the setup) in my custom data and use the id to show and update the widget</li>
  <li>=> For my case, this is working fine...</li>
  </ul>
  
  <p><strong>Question</strong></p>
  
  <p>How do I get a valid  <code>AppWidgetProviderInfo</code> with a configure field != null so that I can use following:</p>
  
  <pre><code>Intent intent = new Intent(AppWidgetManager.ACTION_APPWIDGET_CONFIGURE);
  // appWidgetInfo.configure is null for appWidgetInfo received from mAppWidgetManager.getInstalledProviders()
  // it is not if the appWidgetInfo is received via the AppWidgetManager.ACTION_APPWIDGET_PICK intent...
  intent.setComponent(appWidgetInfo.configure);
  intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId);
  activity.startActivityForResult(intent, WIDGET_CONFIGURE_REQUEST_CODE);
  </code></pre>
  
  <p>Or is there an alternative approach to this?</p>
  
  <p>I think I somehow must create a widget with the <code>AppWidgetProviderInfo</code> manually and then reget the info with <code>mAppWidgetManager.getAppWidgetInfo(appWidgetId);</code> and then I will have a filled <code>configure</code> field as this seems to happen if I use <code>AppWidgetManager.ACTION_APPWIDGET_PICK</code> intent, but I don't know I do this manually...</p>