I am developing an app that using sq-lite database. in my app when user tap on backup my sq-lite db file save on another place. i now write a new version of my app and in new version my sq-lite db has some more fields. how can i check sq-lite database file and get user-version of that file to open it with true fields avoiding force-close? in new version off my app the db version is 2:
private final static String DB_NAME="cDb";
private final static String DB_TABLE="_table";
private final static int DB_VERSION=2;
But in old version my db version is 1. How can i check if my db file is for version 1 or 2?