2

I have a problem that, I have a webservice which returns 3 arrays from JSON response. I want to persist those lists from one class to another in our android app with the help of Serializable interface and Setter and Getter Methods. But I don't know how to achieve this? Please help me out about this problem.

Thanks in advance

Sanat Pandey
  • 4,081
  • 17
  • 75
  • 132

1 Answers1

2

SharedPreferences or Sqlite can be the way you can use to store persist data.

You can use SharedPreferences for persist data between Activities.

Some examples for Shared Preferences

Example1

Example 2

Some examples for Sqlite

Example 1

Example 2

Example 3

Lalit Poptani
  • 67,150
  • 23
  • 161
  • 242