To create a Favorites feature in App Inventor App ?

307 views
Skip to first unread message

Pranav Raghaw

unread,
Jul 20, 2016, 10:09:25 PM7/20/16
to MIT App Inventor Forum

Is there ant way in App inventor to create a favorites feature in app inventor app.

Basically, what I mean is, there should be a star on top right of each screen. When the app user clicks on the star, its color changes and the notifier opens saying - "Added to Favorites".
There will be a button linking to the favorites page that will contain the list of headings of the pages stored.

Italo

unread,
Jul 21, 2016, 1:21:42 AM7/21/16
to MIT App Inventor Forum
You have a Global variable named FAVORITES which is a LIST. It may be empty because you didn't "favorite" any page yet.
When the user touch the star (a button with a white star in it), add an item to that list. The item will be the page the user "favorited"
Also save that list in a TinyDB tag named FAVORITES and change the image of the button to a yellow star. Also make the notifier appear saying that the page was saved in "your favorites"
Reply all
Reply to author
Forward
0 new messages