title: Not ready for backup request right now
body: <p>Whenever a user installs my app for the first time an instalationID is generated randomly (say Instalationid =123). I am trying to back up this instalationID, so that when the user uninstalls and then installs my app the old instalationID (123) will be assigned to him again, rather than a new one. After all, he is the same user.</p>
  
  <p>I have a shared preferences file, called <code>SESSION_INFO_PREFERENCE_KEY</code>, that holds the instalationID and I try to back up the shared preferences file. The back up manager is:</p>
  
  <pre><code>public class ADCBackupAgent extends BackupAgentHelper {
  
      // The name of the SharedPreferences file instalation ID
      static final String INSTID = "SESSION_INFO_PREFERENCE_KEY"; //SESSION_INFO_INSTALLATION_UID    
  
      // A key to uniquely identify the set of backup data
      static final String INSTID_BACKUP_KEY = "inst_id";
  
      // Allocate a helper and add it to the backup agent 
      @Override
      public void onCreate() {
          Log.i("OnCreate Method","!!!!!!ON create called!!!!!!!!!!");
          SharedPreferencesBackupHelper helper = new SharedPreferencesBackupHelper(this, INSTID);
          addHelper(INSTID_BACKUP_KEY, helper);               
      }
  
  }
  </code></pre>
  
  <p>Also, whenever the instalationID is generated for the first time I perform a call to the Back up manager such as:</p>
  
  <pre><code>//this pointing to the current Activity
   BackupManager backUpManager = new BackupManager(this);           
   backUpManager.dataChanged();
  </code></pre>
  
  <p>For the sake of completenes:</p>
  
  <pre><code>&lt;application 
          android:icon="@drawable/application_icon"
          android:label="@string/app_name"
          android:name="MyAppName"
          android:theme="@style/FragmentTheme"
          android:allowBackup="true"
          android:backupAgent=".ADCBackupAgent"&gt; 
  
  ...
  
  &lt;meta-data android:name="com.google.android.backup.api_key" android:value="AEdPqr..." /&gt;
  &lt;/application&gt;
  </code></pre>
  
  <p>My code works perfectly fine when I do the back up on the local transport (using the <code>bmgr</code> tool), however, when I try to back up the data on Google's cloud strage I get:</p>
  
  <pre><code>04-28 15:12:24.305: W/BackupTransportService(390): Not ready for backup request right now: [OperationScheduler: enabledState=true lastSuccess=2014-04-03/15:10:49 moratoriumSet=2014-04-28/14:43:18 moratorium=2014-04-29/14:43:18 trigger=1969-12-31/19:00:00]
  </code></pre>
  
  <p>Furthermore, the <code>onCreate()</code> Method is never called.</p>
  
  <p>This does not happen when I back up the data on the local transport, i.e., <code>onCreate()</code> is called and "Not ready for backup request right now" does not appear.</p>