title: SQLiteOpenHelper.setWriteAheadLoggingEnabled(true) vs SQLiteDatabase.enableWriteAheadLogging()
body: <p>I was looking at the JavaDoc for SQLiteOpenHelper and noticed the <code>setWriteAheadLoggingEnabled(boolean)</code> method.  The SQLiteOpenHelper doc suggest enabling write-ahead logging in a helper's <code>onConfigure(SQLiteDatabase)</code> method.</p>
  
  <p>Is there any difference between calling <code>setWriteAheadLoggingEnabled(true)</code> on the helper, compared to calling <code>enableWriteAheadLogging()</code> on the database instance that gets passed to <code>onConfigure()</code>?  Or is the API just redundant?</p>
  
  <p><strong>Update</strong>: Looking at the code for <a href="https://github.com/android/platform_frameworks_base/blob/master/core/java/android/database/sqlite/SQLiteDatabase.java" rel="nofollow">SQLiteDatabase</a> and <a href="https://github.com/android/platform_frameworks_base/blob/master/core/java/android/database/sqlite/SQLiteOpenHelper.java" rel="nofollow">SQLiteOpenHelper</a>, it appears that <code>SQLiteOpenHelper.setWriteAheadLoggingEnabled(boolean)</code> just does some checks (that <code>enableWriteAheadLogging()</code> and <code>disableWriteAheadLogging()</code> already do) before calling the appropriate method.</p>