0

I have a listview that get posts and data of users, I want to save my data and view even if I closed my application and re-opened it, I need it to open the same data that was loaded and the same view and don't load data and view again just like facebook does. Can anybody help me?!

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129

2 Answers2

1

Sounds to me like you need to store the information on the actual phone.

Use shared preferences

Community
  • 1
  • 1
Ogen
  • 6,499
  • 7
  • 58
  • 124
1

Save your posts in Android Sqlite Database and then load data from sqlite then make a network request.

Sqlite Tutorial