Home > Software engineering >  How can I store datas in application with Kotlin
How can I store datas in application with Kotlin

Time:03-22

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:

  1. SharedPreferences Reference Link
  2. SQLite Database Reference Link
  3. Room Database Reference Link

You can choose another database as well so many libraries are available on GitHub.

Online Storage:

  1. 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

  • Related