App won't open a second time after importing data using ETinyDB

Good day! I'm facing a problem where when I import data using the ETinyDB extension, the app won't open when I close it and open it again.

Essentially, the app I'm creating has a screen wherein users can input notes and pictures using a textbox and image pickers respectively, then, using the ETinyDB extension, they can export the data from multiple TinyDBs as a JSON file and import different files.

Extensions used:
ETinyDB (ETinyDB: Extra utilities for Tiny DB)

Any help is appreciated, thank you!

Screen1:

This is what it looks like when I try to open it again, stuck:

Blocks on the screen with the export & import aspects:

Could you please provide us the project file and instructions to reproduce the issue?

Hello! Thanks for the reply!

Here are the files:
https://drive.google.com/drive/folders/1ZedrDKv5eRAkyBdBX7pD_-dOCVK05dGU?usp=sharing
(I couldn't directly upload it here so I had to make a Google Drive)

Steps:

  1. Open the app
  2. Tap on the "Folders Button"
  3. Click any of the folder images and type anything or upload anything
  4. Once done, click save
  5. Click "Export", it should be named as "MyNotes.json" and can be found in the Documents folder in your Files app
  6. Click "Import"
  7. Close the app
  8. The app should now be stuck

I've tried it also on another Samsung device, same issue.

Additionally, I'm pretty sure when I don't import anything the app opens, last time I checked

What version of Android did you do the tests on?
I did tests on my Android 13, and 15. Seem to work pretty fine. It dosent get stuck for me.

My Phone is a Samsung A25, Android 14

Tried again, got stuck again when I tried to open the app. :pensive:

Hi, you'd have to use ADB to capture the logcat:

Oh sorry I forgot to reply here.

I was able to fix it now, I cut down the image pickers to only 6, and instead of using the ExportAll command, I used the Export Command and had all the TinyDB have the same namespaces so it would still save all-in-one. Not sure why this was able to fix it but what works works man.

Thank you for your help!

1 Like