A
A
Artix2015-01-24 20:18:35
Android
Artix, 2015-01-24 20:18:35

How to create a favorites system in android app?

Good day to all!
I have a task:
I need to fill the ListView with the names of the fragments, but in the way the user chooses. For example, we still came across the "Add to Favorites" button, and when you click, then (for example) the press article replenishes one element in another ListView fragment, and its name will be "ARTICLE_TITLE", and this is necessary in order to next time, do not look for the necessary article, but simply go to it through this ListView.
But filling the listview is half the trouble, it is important to save it somehow so that it is not lost after the restart.
In short: I ask you to draw up a plan on how to implement this idea, i.e. where to save ListView values, how to save, maybe try through a file?
Thanks in advance for your replies

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Max, 2015-01-24
@mbelskiy

Donate :
developer.android.com/training/basics/data-storage...
www.tutorialspoint.com/sqlite/index.htm

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question