Maybe. It can also be a plain text file, json or xml format.1, I think a CSV file would be sufficient,
Instead of sending the csv file by email or FTP to a server which eventually landed into a database, there are other options such as using jRDC2 or REST API.
What is the frequency of the data? What is the format?2. Data processing not required in app
Knowing how the data looks like will help choosing which way is more suitable to store it.
e.g the glove will send an array of numbers to the mobile every cycle.
The cycle is something like {1, 4, 2, 3, 13, 1, 3, 4, 2, 13, 3, 4, 1, 2, 13} where 1 to 4 represent the fingers and 13 is a pause.
Let say this cycle will repeat every 10 seconds. If the user use it for 3 hours then it will contain 3 x 60 x 6 cycles = 1080 cycles, which translate to approximately 1000 rows of data. If he/she uses it in a month, 3 days per week, it will turn to 12,000 rows of data.
Each row also record the date and time. So the format may look like:
{2024-05-09 08:00:10, 1, 4, 2, 3, 13, 1, 3, 4, 2, 13, 3, 4, 1, 2, 13}
{2024-05-09 08:00:20, 3, 4, 1, 2, 13, 1, 4, 2, 3, 13, 1, 3, 4, 2, 13}
{2024-05-09 08:00:30, 1, 3, 4, 2, 13, 1, 4, 2, 3, 13, 3, 4, 1, 2, 13}
e.g Another format is just the start and end time of the usage.
start time: 2024-05-09 08:00:10, end time: 2024-05-09 11:05:30
My preference is to use an SQLite database in the mobile. For simplicity, a KeyValueStore library can also do the job.