what version of sqlite i should use, if i target android 2.2
<p>Currently  I am using Sqlite 2.0 because the book I am using to learn uses Sqlite 2.0. But now I find other new versions. So is there any mapping like android 2.2 should use this version kind of a thing. </p>

<pre><code>private static final int DATABASE_VERSION = 2;
@Override
public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
Log.w(TAG, "Upgrading database from version " + oldVersion + " to "
    + newVersion + ", which will destroy all old data");
db.execSQL("DROP TABLE *");
onCreate(db);
}
}
</code></pre>

<p>Above is the code i found in a study material, where it tells the DB version as 2. may i know what that version is denoting to, as @gregory link tells android starts with SQLite version 3.4. </p>

<p>I would like to know when this upgrade method comes into place or when it should be used </p>

<p>Thanks</p>
