I have read many threads on the forum and following several tutos but my questions remain unanswered.
I want to make an app that stores for each event several data. So I have made a "form" that stores those data in a TinyDB. This is a great solution because I won't have internet each time I add a new event so the persistant data storage feature of TinyDB is perfect. BUT, I want to be able to export my data once in a while to save them (when I have access to internet) and this export should be as a .CVS file because I will need to run SQL queries and do some maths (for example finding the average time of the events, based on the time entered for each event).
1)
TinyDB vs File component (.CSV): Here is where my problem starts: because we can't access TinyDB unless we root the phone, TinyDB doesn't seems the right way to store my data, BUT each time I read a thread about saving data to a file component, there are always at least one post advising to use TinyDB (for example: post 3 here) . Why is TinyDb a better solution? Would it also be a better solution for me knowing that I don't have internet connection (fusion table would have be so great otherwise) and that I need to export my data as .CSV?
2) If you recommend using TinyDB, I have another question. What would be the best way to organize my tag/list to later export them to a .csv. In have followed a tuto explaining list to/from csv table/row but I wonder what would be the best way to organize my lists:
My unique requirement is that I want all my events have each a unique ID that increments automatically each time I save a new event (that would be easier for SQL queries). At the same time, I would like to have a screen where all the data collected are displayed so setting a unique Tag under which all the data are stored seems like the best way to do that. (Having on tag -1,2,3...- per event, or one tag "Event" for all the ID that are incremented automatically and then each ID would be a list of the data stored per event would be more difficult to display on a screen, at least to my level of knowledge).
Any insight would be welcome !
Thanks a lot for your help!