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
SharedPreferencesorSqlitecan 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