Android Question Save data to text file , when switch the phone off.

Ross Woodward

Member
Licensed User
Longtime User
Hi ,

I have been looking through the forums and I could not find what I was looking for.

I have got little app, and when I have some data inserted in I would like to remember them when I turn the phone off, or if the battery dies.
It remembers when I press the middle button to menu. (Pause, Close the App,) It all remembers via the " StateManager" but not when I turn the phone off.

Anyone has any suggestions?

Thanks
 

Ross Woodward

Member
Licensed User
Longtime User
Hi Erel,

I should have probably mention. With my state manager, i save to file in xml.
With the KevValueStore, can i use the same file to save the data?

Thanks
 
Upvote 0

Ross Woodward

Member
Licensed User
Longtime User
Hi,

My main concern is as it's list of items , which can be long list.
Its saved with state manager to " info file"

and im not entire sure, how would I save it when i turn the phone off/battery dies.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…