Sunday, 11 January 2015

Android database version in configuration file



Is it possible to keep the version of database of an Android app in any configuration xml e.g. Strings.XML ; instead of keeping it as variable in SQLiteOpenHelper subclass.


Atleast is it possible to read from such XML when class is loaded.


e.g.



public class MySQLiteHelper extends SQLiteOpenHelper {
private static final int DATABASE_VERSION = /// Some code to initialize version from config file
:
:
}

No comments:

Post a Comment