My existing app data is on SQlite. I am trying to migrate the data from Sqlite to Realm. I google how to migrate data, but didn't find any solution related to that.
I am planning to launch an update version of the existing app. While updating the app the data must migrate to the Realm and the existing Sqlite Database must be dropped. Please share some idea with solution if possible.
Let's suppose you have TODO list in DataBase(SqlLite) stored and you want to migrate it to realm DB.
SqlLite interface for the TODO Item table
Realm Object for the ToDo Item
Step 1. Increment the version of the DB where you are extending SQLiteOpenHelper (ie: DbOpenHelper class given below).
Step 2. In DbOpenHelper class using onUpgrade function you can check the version and store all your SqlLite Data records to the realm db.