ETinyDB : export and import tinnydb backup

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.

Does anyone have any comments?

blocks(3)





TO Refresh

This post was flagged by the community and is temporarily hidden.

This post was flagged by the community and is temporarily hidden.

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.

Have you tested it?

You can share that error with us here...

See here:

Which of the following methods for picking file will work with all devices without problems?
SAF Picker - Activity Starter - App Inventor File Picker

This should work on all devices.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.