Hello, I am looking for some help. ( I am a complete beginner in this programming)
I want to create a very simple application based on the principle of a card game.
The game consists of cards on which tasks are written. I need the cards to go in random order.
When I press the "Next card" button, a random row is loaded from Google sheets
Task names and instructions are written in google tables. I need the application to read the name and instructions from these two lines and display this information in random order. (as cards).
or probably easier, convert the sheet into a csv table and store that table in a text file in the assets of your app, then use the file component to read it on first run of your app
If the data in the form is updated every now and then, it will be a bad idea to write to the file. You can only save the file as a backup. I would read the spreadsheet every time when starting the application, unless there was no internet connection, then from the file. I would use TinyDB instead of a file. Faster and easier access.
In the initialization blocks, you can add loading data from TinyDB in case the internet is unavailable. If the internet is available, the data from the sheet will overwrite the data from TinyDB.