Skip to content

User data import export#114

Open
intermarc wants to merge 6 commits intomasterfrom
user_data_import_export
Open

User data import export#114
intermarc wants to merge 6 commits intomasterfrom
user_data_import_export

Conversation

@intermarc
Copy link
Copy Markdown
Collaborator

This branch adds functionality to import and export database tables with user data, which could be useful when migrating to a new device or to just have a backup. In particular, the data exported/imported includes:

  • Talk, teacher and center stars (favorites)
  • Talk playback history

Import and export are based on .sqlite3 files and use the android file picker, such that the app does not require additional storage access permissions. The following image illustrates the import process:
import_export

Imported tables are merged with existing tables in the app. For the "star" tables, this is a straight forward union. For the history table, conflicts are resolved by retaining the talk playback progress with the most recent access date.

…rate function

- added functions to import/export history and star tables to external sqlite3 file
…itNavigationDrawer

- lots of code just to add icons to the new import/export buttons :)
- new functions for importing/exporting user data to storage using the android file picker and new functionality in DBManager
- success and error messages for import and export
@intermarc intermarc requested a review from bb4242 April 25, 2026 19:36
@intermarc
Copy link
Copy Markdown
Collaborator Author

The last commit has nothing to do with the import/export feature. I just noticed that www.dharmaseed.org links were not being redirected to the app! This might explain some seemingly inconsistent behavior that we noticed in the past.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant