Search code examples
androidsqlitesynchronizationormlitedata-synchronization

Is it possible to sync android ormlite across device?


I am considering using ORMLite for persistance in an android app. A requirement is to be able to sync the underlying android SQlite database across multiple android devices.

Is this possible with ORMLite? And how?


Solution

  • You can directly copy the database file over to another device and it will work if you didn't change the schema.

    I wouldn't recomment that though. Instead you could load the Object tree from your db using ORMLite, copy it over, and write it back to the db with ORMLite. You might want to look into SyncAdapters too.