How to use TINYDB BACKUP?

I have a list saved in tinydb, that I need to store in the local storage, and fetch it to restore the list. How is it possible?

I think it will not work in the latest android versions starting from 11.

You can simply save it as a .txt file and then read the content of the .txt file and restore it whenever it is necessary.

I tried that already but the thing is, the restored data is fetched in a STRING type and then it gives an error as I need to use it as a LIST ARRAY. I need to store lists and fetch list. But it goes like I store list and it fetches string.

The problem is in your blocks, so you should have started your topic showing your blocks. Without it we can’t help you to find and solve the problem.