After several failed attempts to program an export and share button and an import button for the database using ETinyDB Extension,
I also failed using File Picker.
This method worked for me on SDK version 34 , but I don't know if it will work on other versions.
The export button exports a backup file in JSON format, and the file name contains the time the user exported.
The import button retrieves data stored in the database.
Hi @Eng_A.Abdelaty, could you please tell us what exactly is not working? The export functionality? Does the file get created? Or it's with the import functionality?
The import button works without problems on SDK 34, but I don't know if it will work on other versions. Why can't I use File Picker to pick json file ? It always gives an error reading the file.