Skip to content Skip to sidebar Skip to footer

Update An (native) Android App With A New Version In Flutter While Keeping The Database

I have a small application for android written in java, I am rewriting using flutter. Is it possible to transition to the new version by keeping the SQLite database structure intac

Solution 1:

If anyone needed it, I was able to read the data from the existing database and write to it using flutter.

My previous test had gone wrong because the bases were allocated in separate directories.

In java, I had created the database using the SQLiteOpenHelper class, while in the new flutter application I tried to connect using getApplicationDocumentsDirectory().

I just changed the access path, and it's all settled :)

var databasesPath = await getDatabasesPath (); String path = join (databasesPath, "database.db");

Post a Comment for "Update An (native) Android App With A New Version In Flutter While Keeping The Database"