How to save android acvitiy history and retrieve at later time? -


how save previous activity , have update listview when user launches app @ later time can click on menu option called history bring listview of last few activities. let's listview holds 5 activies , after 5 activies deletes oldest activity saved , saves new activity in it's place.

for example if wants view history of android activity viewed 2 days ago, can click on button called history , view past 5 entries displayed in listview.

any ideas?

you can't default android activities method.

just save state in onresume/oncreate (as file in filesystem or sharedpreference) , read yours history activity.

sorry bad english)) ask if don't understand something.


Comments

Popular posts from this blog

javascript - backbone.js Collection.add() doesn't `construct` (`initialize`) an object -

php - Get uncommon values from two or more arrays -

Adding duplicate array rows in Php -