简体   繁体   中英

Save listView data like Facebook in android

I want save data like Facebook. As you seen when you have no internet it show the post that loaded last time. I know how to create custom listview but problem is that when you close the app it also destroy the data. I searched and I found something that we can save listview data in sharedpreference but I think we can only save string data there. How Face save your status,images and videos are they using sharedpreference or anyother thing. Any tutorial or something where I can learn this.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM