title: Do I need to used a Synchronized statement every time I read/write to my database?
body: <p>I'm implementing Android Backup Service and <a href="http://developer.android.com/guide/topics/data/backup.html#Files" rel="nofollow">the guide says that</a> </p>
  
  <blockquote>
    <p>reading and writing to external storage is <strong>not threadsafe</strong></p>
  </blockquote>
  
  <p>It then says that the <code>onBackup</code> and <code>onRestore</code> functions should be performed in a <code>synchronized</code> statement. My question is: do I need to use this approach everywhere I read/write my database?</p>
  
  <p>So </p>
  
  <pre><code>db.open();
  course = db.getCourse(courseId);
  db.close();
  </code></pre>
  
  <p>would become...</p>
  
  <pre><code>synchronized(MyConstants.DBContant){
      db.open();
      course = db.getCourse(courseId);
      db.close();
  }
  </code></pre>
  
  <p>I read/write to my db a lot. I want to make sure before I go add this everywhere.</p>