Im facing some problems while im trying to import an existing SQL Database into my project . I located the .db file in src/assets folder , and configured my DBHandler like this:
public class DatabaseOpenHelper extends SQLiteOpenHelper {
private static final String DATABASE_NAME = "test.db";
private static final int DATABASE_VERSION = 1;
public DatabaseOpenHelper(Context context) {
super(context, DATABASE_NAME, null, DATABASE_VERSION);
}
But , whenever I try to make a raw query from a table, Android , instead of use the database from my assets folder , creates a empty new one with the same name and a table called android_metadata only.
How can I setup this correctly?