I want to make a favorite button. For example, when this button is pressed, I want the contents of the text to be saved or press it again, to remove it. however, it should not be deleted since it needs to be saved and saved on another screen during recording. How can I do it?
Peter
(Moderator)
March 28, 2020, 1:39pm
#2
Show what you have done? And give more info of what you are trying to achieve.
Asking questions
To improve the chance of getting help on the forum please follow these recommendations when posting a question:
Do your homework first
Search for similar questions/answers on the forum. Try forum search and also Google your problem.
Try to solve the problem yourself, and describe what you have tried. It is much more rewarding to help someone who has tried himself first.
Post in the right categorie, post only once and do not steal topics
Make sure that you post your question …
3 Likes
kendell_r
(kendell)
March 28, 2020, 2:10pm
#3
The easiest way would be to use a TinyDB. Set the Namespace to the same value on each screen, and store a list of favorites.
I know how to save, but I don’t know how to save the value or text to another page. can you show me an example code for this
kendell_r
(kendell)
March 28, 2020, 2:52pm
#5
And on Screen1, go to TinyDB1’s properties and set Namespace to “Favs”
And on Screen2, go to TinyDB2’s properties and set Namespace to “Favs”
thanks, but, nothing has changed, when I clicked the button, he did not send it to the other page,
Peter
(Moderator)
March 28, 2020, 4:29pm
#7
Show the blocks for screen1 and screen2.
Screen1
Screen2
all i want is a tag, name, another, send to page and save, i.e. my favorites
Peter
(Moderator)
March 28, 2020, 6:16pm
#9
I guess you don’t understand the concept of a tinydb. Look at this video.
https://docs.kodular.io/components/storage/tiny-db/
Taifun
March 28, 2020, 9:46pm
#10
mtrrt_tclsf:
Screen2
you might want to learn how to switch screens correctly…
I see many issues done by users because they switched screens not correct.
This below is now just one of many other solutions:
[blocks]
If you dont open/close screens correct your app will get possible runtime errors.
Possible errors: (example)
Unable to add window -- token android.os.BinderProxy@45d459c0 is not valid; is your activity running?
Iam sure you don’t want that.
Then please do it in the future and switch screens correct.
General Tips and Tricks for App Inventor/Makeroid
…
Taifun
i don’t know this language