title: Sync Adapter and SQLite instance
body: <p>I've created custom <code>syncAdapter</code> for my Android app. Also I've created <code>Sqlite</code> helper that is a singleton. </p>
  
  <p>Next, when I'm trying to login I'm creating a helper instance and it works ok. But after login when i want to call <code>SyncAdapter</code> method <code>onPerformSync()</code> new instance of helper is created.  </p>
  
  <p>Helper: </p>
  
  <pre><code>public static DBHelper getInstance(Context context){
      if(instance == null){
          instance = new DBHelper (context, "DBName");
      }
      return instance;
  }
  </code></pre>
  
  <p>onPerformSync():</p>
  
  <pre><code>@Override
  public void onPerformSync(Account account, Bundle extras, String authority, ContentProviderClient provider, SyncResult syncResult) {
          helper = DBHelper .getInstance(context);
  }
  </code></pre>
  
  <p>Anyone can help?</p>