ETinyDB: Extra utilities for Tiny DB

  1. TableViewer
  2. DrawerMenu
  3. BottomNavigation
  4. StorageAccess
  5. MaterialDialog
  6. UrsAI2Popup
  7. TaifunFile

When I export only a single namespace (TinyDB1 which I use to store my data), I get the json file without any problems. I guess other components create their own namespaces and one of them causes this problem.

Version 2

  • Fixes export problem on certain conditions

xyz.kumaraswamy.etinydb.aix (32.1 KB)

Hi, i'm quite new to App Inventor. I was trying to use the ETinyDB extension to export mi database to a json file on my device. I downloaded the .aix file and imported it to extensions. But whenever i get to the screen in which i wan't to click export data, i get this error.

Are you testing with companion app ?

yes

There are currently issues with the companion app.

Try with a compiled app, or you can try with this updated companion:

You will get a warning that ai2
doesn't know about version 2.73d1u , just click the not now button
and all should be well.

Worked, thanks!
Btw, will it be possible to export the file on my Galaxy A34? I'm getting java.io.IOException: Read-only file system

Export it, where ?

Where have you saved the file ?

I have tried to save the file in /Downloads, but got read-only errors. Isn't it possible to save in this directory, or should i give permissions somehow to the app

Looks like you need to provide a filename, and I will have to look at the extension to see where it saves by default, you may need to provide an absolute or full path...

Yes, these blocks will save to your ASD:

image

so for the Download directory try:

file:///storage/emulated/0/Download/filename.txt

Is a file needed? Can't I save it directly as a json with call EtinyDB1.Export?

You want to store the output in a variable or send it somewhere?

then use this block

Screen Shot 2024-01-20 at 20.41.26

i want to save the data in my database as a json file in a way that i can then pass this file to my computer afterwards

I manage to save it using

Hey, im trying to build an import/export from TinyDB1 in my app with EtinyDB.
But what should i fill in component?
Anyone who can help me with building this?

blocks(2)

Don't use the Any Component version, use the blocks from the extension.

I cant, its just a white line.

Skærmbillede fra 2025-08-02 22-46-40

Well i dont know how to make this. I failed :slight_smile:

Anyone who can help?

I also tried this:

Your blocks store the file in ASD, the application specific directory, which is not directly accessible by a file manager, but you could share it from there

To store it in shared storage, use the correct dictionary, which us called Download (without s)
together with File Scope Legacy

Taifun

Do you have your Blocks Toolkit set to Default in Project Properties ?