I am new in android developing. I try to learn Kotlin. My application is about places. I saved places in a list with recyclerView and also I did authentication and storage in firebase. The last thing I want to do is when I open the application I want to see where I saved in my list. (it means I could not reach the PlaceActivity where I saved datas) But this page is empty. Can you help me? How can I store datas in my application?
CodePudding user response:
We have multiple ways to save application data. You need to decide where to store your data.
Offline Storage:
- SharedPreferences Reference Link
- SQLite Database Reference Link
- Room Database Reference Link
You can choose another database as well so many libraries are available on GitHub.
Online Storage:
- Firebase Reference Link
Or you need to implement an API call for saving the data and getting the data.
CodePudding user response:
I think that for your app you can use the Firebase service "realtime database". In fact, when you open the app it will retrieve the data that you need for your list. Here's the documentation: Reference Link