user3927312
user3927312

Reputation: 824

Persistent data storage Windows Phone 8.1

Is the data contained in applicationdata.curent.localsetting.values persistent? As in, will they contain the same values that were previously set if I were to restart the phone and my application?

I don't have a device to test this on but I believe it doesn't. What would be the most efficient way to store my applications data for various settings?

Thank You.

Upvotes: 1

Views: 1160

Answers (1)

Filip
Filip

Reputation: 1864

Yes, it is persistent. Just don't forget do call its Save() method otherwise you'll all modifications.

However I'd use ApplicationData.Current.RoamingSettings which is backed to OneDrive and in case of Universal App is shared between phone's and PC's versions.

Upvotes: 1

Related Questions