How do I Set Buttons Color and Keep it Saved when I close App?

I am sure this is a FAQ, but I am struggling on how to change the color of a button and keep it saved for next time when i reopen the app.

I am attempting to make a soundboard, and I know how to change the colour of the buttons with clicks and long presses, what I don't know is how to keep those changes saved afterward. If i close and reopen any page or the app itself, the colours go back to the original button colours making itdifficult tokeep trackof my favourite sounds. I am developing an app for my mute friend with over 150 sounds.

So what I am asking is how to SAVE the colour changes made. The operation is very simple. When Button1 is longclicked, the colour is changed from gray to orange, as a sort of favorite, longpressing this button again returns the original colour. How would I save these changes using tinydb? (See Fig1) Mind you, I am very new to the app developer, and any help is appreciated! Thank you

use TinyDB to save tha background color... to save a background color use the StoreValue block
TinyDB tutorial by Stephen

A very good way to learn App Inventor is to read the free Inventor's Manual here in the AI2 free online eBook App Inventor 2 Book: Create Your Own Android Apps ... the links are at the bottom of the Web page. The book 'teaches' users how to program with AI2 blocks.
There is a free programming course here Course In A Box and the aia files for the projects in the book are here: App Inventor 2 Book: Create Your Own Android Apps
How to do a lot of basic things with App Inventor are described here: How do you...? .

Also do the tutorials Our Tutorials! to learn the basics of App Inventor, then try something and follow the Top 5 Tips: How to learn App Inventor

Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by icon24 Taifun.