Hi, I have a list that given you a daily goal every time you press a button but when I go out of the program it goes back to the top of the list. How can I make it so that when you open the program it continues from where in the list you had gotten up to? If anyone can tell me how to attach a photo I can send a picture of the code I have.
All you have to do is save the Index value in TinyDB on App Exit, and read it from TinyDB when the App is Opened, on Screen Initialization.
Edit: Note, you must not name a Procedure "procedure" - that's a key word and will cause issues when your App is built as an APK. Something Like procedureDailyGoal is a good name.