Talk:Saving application preferences in Windows Phone
SB Dev -The information is equally valid on WP8, the according category was added.
talk) 16:26, 6 September 2013 (EEST)(
Hamishwillee - But is is "complete"?
So does this mean that IsolatedStorageSettings class is still recommended for app settings in WP8?(ie I know it works, but is it the thing people are supposed to use? The reason I ask is that there were new classes for file manipulation in the WinPRT layer, and I was wondering if they had functionally for this?
talk) 07:47, 9 September 2013 (EEST)(
SB Dev -
Given that the current Quickstart sample over on MSDN still uses this method I'd at least assume that they don't actively discourage it, see http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj714090(v=vs.105).aspxI can check if there is something new regarding settings in the WinPRT APIs, though so far I only know of the unified interface for file handling.
talk) 08:03, 9 September 2013 (EEST)(
Hamishwillee - That was my understanding too
Just playing devil's advocate/ hoping for confirmation. I am happy with what you did, but if we can confirm the status absolutely that would be even better.Thank you
talk) 09:30, 9 September 2013 (EEST)(
SB Dev -
Instead of the IsolatedStorageSettings Windows 8 uses the ApplicationDataContainer class. It can have multiple instances (local vs. roaming). As per the documentation the API is not implemented in WinPRT, see: http://msdn.microsoft.com/en-us/library/windowsphone/develop/windows.storage.applicationdatacontainer.aspx and http://msdn.microsoft.com/en-us/library/windowsphone/develop/windows.storage.applicationdata.localsettings.aspxThis might change with WP8.1 though.
talk) 05:27, 10 September 2013 (EEST)(
Hamishwillee - Thank you - taking this forward.
So to take this forward, we can either:
- Divide into WP7 and WP8 sections and cover both
- Change this back to "Save and load application preferences using IsolatedStorageSettings on Windows Phone 7" or "Saving application preferences in Windows Phone 7" and have a new doc for WP8 and forward. Cross link and have some comments explaining the next approach.
I am leaning towards encouraging the second option because the approach in WP8 appears (on scan) to be more interesting and more flexible so this sort of "basic" example would not really be sufficient. On the other hand if we know that this is likely to change significantly in WP8.1 (do we?) then having all in the one place is helpful. Thoughts?
I raised on the Discussion boards too in case someone has some expertise in this area and would like to create the article. http://developer.nokia.com/Community/Discussion/showthread.php/242763-Anyone-got-expertise-in-saving-app-settings-in-WP8?p=926051#post926051
talk) 08:05, 10 September 2013 (EEST)(
SB Dev -
Sry, if I didn't say it clearly enough - it is part of WinRT (Windows 8) but not part of WinPRT (Windows Phone Runtime - that is WP8). The classes exist but they raise a not implemented exception.I should not have used WinPRT there.
talk) 08:09, 10 September 2013 (EEST)(
Hamishwillee - No big deal
Closed the discussion down now. If it comes to WP8 we'll update if needed.
talk) 08:04, 10 September 2013 (EEST)(