Im trying to develop a project in jetpack compose a news app. In the get started screen we will see all the different types of news categories that the public api offers . I dont know how to store the users selection of interests . how to use these selected interested topic later in the project to fetch only news according to the selected topic and to display in home screen feed.
I think its because of my poor selection of words i couldn't able to find appropriate guide on this problem from google search . thats why Im asking here please help if anyone knows anything about this. please share resources too for better understanding .
There are several approaches to storing data on-device in android. You can look into preferences datastore where you would store values as key. You could also store data in a database using room
The android developers website has a whole section on data persistence. You can check it out here