title: How to restore widget data to its previous state when reboot the phone?
body: <p>I am setting widget data using <strong>android:configure</strong> tag which sets my <strong>configuration activity</strong> (i.e. it's list dialog ) which sets <code>onClick</code> event and image to my widget depending on user's selection. now the problem is whenever I reboot the phone or rerun my widget clears its image and clickListener to. </p>
  
  <p>and even if I set a listener to BOOT_COMPLETED intent how I am going to reset widget's value to previous values as I <strong>don't</strong> want to call my configuration activity every time I reboot.</p>
  
  <p>thanks in advance.!</p>
  
  <pre><code>@Override
  public void onReceive(Context context, Intent intent) {
      super.onReceive(context, intent);
      if (intent.getAction().equals("android.intent.action.BOOT_COMPLETED")) {
          AppUtils.showToast(context, " BOOT_COMPLETED ", true);
      }
  }
  </code></pre>