i was trying to develop a universal app for Windows 8.1 in C# using Visual Studio 2015. for testing i saved some text in RoamingSettings in Windows project then while trying to read that text in Windows Phone Project the app crashes due to a "NullRefrenceException".. Here is my Code
in Windows Project :
Windows.Storage.ApplicationDataContainer RoamingSettings = Windows.Storage.ApplicationData.Current.RoamingSettings;
RoamingSettings.Values["USERNAME"] = userNameInput.Text;
in Windows Phone Project :
Windows.Storage.ApplicationDataContainer RoamingSettings = Windows.Storage.ApplicationData.Current.RoamingSettings;
myTextBlock.Text = RoamingSettings.Values["USERNAME"].ToString();
as i mentioned the Windows Phone app crashes in both the emulator and the physical phone, did i write the required code for this feature ? is the Roaming Settings/Folder is the place which stores universal apps data ?
Thanks for your time