Save and retrieve TinyDBX to/from SdCard and CloudDB. Share TinyDBX

Hello friends,

In 2017 I released an old extension to use a TinyDBX, similar to TinyDB.
With this extension we could have different TinyDB through the “Pretag” property, similar to what is now “Namespace”.
Furthermore we could easily save and retrieve TinyDB by saving it in a file in the SdCard.!searchin/mitappinventortest/tinyDBX|sort:date/mitappinventortest/7n0CPHIfZSc/BoebXhvYCAAJ

We are going to use that extension to save our TinyDBX in CloudDB and SdCard, then retrieve it.

Note that we will save the entire TinyDBX with a single tag (in this example: mytinydbx).
Notice that I have used Spanish characters: Ñ, ñ, tilde …

p257B_tinydbxCloudDB.aia (17.1 KB)

Here extension:

Juan A. Villalpando.


Hi your component looks great for what I am trying to achieve regarding saving and retrieving a text file from my database. I have a problem however when trying load the file back to the tinydbx I get an error " Attempt to invoke virtual method 'void' on a null object reference" this also occurs on the sample aia file I imported any ideas?

What version of Android are you using?

my Android version is 10.0.0

With Android 10+ it is somewhat more complicated to work with files on the SdCard, try saving the file in the ASD directory.

thank you I will check it out

Dear Juan A. Villalpando,

I am contacting you because I read a post of you from a few years ago. I would like to ask for your help in completing an app of mine. Specifically, I would like to know what modifications I need to make to your block to make it work with the current date.

I would be very grateful if you could help me with this. I am stuck on this issue. I have tried to find a solution online, but I have not been able to find anything that works.

Thank you for your time and consideration.

Sincerely, rabmax


Have you given up with etinydb ?

Still not.