I want to load data from server and show in my application (RecyclerView
), for this job, when the application starts it shows 10 posts and when scrolling recyclerView
show another post .
I want when users click on Favorite button, save this and when go to Favorite page show this items!
My items loaded from server (json
) but and I want save favorite items in android device not server!
I want save items (posts) ID and when go to favorite page, fetch posts from server.
How can I do it?
I am amateur please help me. Thanks all