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
  • 3,961
  • 16
  • 69
  • 126

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
  • 66,608
  • 21
  • 157
  • 241