- Apr 5, 2013
- 1
- 0
- 0
Hi,
I'm fairly new to windows phone programming.
I need to store data on the phone when the app closes, and load the data when the app starts.
Specificly BitmapImages, dictionaries of all types and simple integers, bool etc.
At the moment i have implemented a different method for every different type of data, that converts the dictionary to json, and then saves it as a .json file on the phone.
BitmapImages are of course not converted to json, they are saved in the way described in the WP documentary.
This technique is very painful, because every time I need to save data thats of a new type, i have to implement a method for that first.
Now my question, do you know any way to accomplish this task, thats more robust and flexible than mine?
I found an article about a local database on WP here and I'm now experimenting a bit with that, but I'm not sure if it can really do what I want.
I would really appreciate any help, because I have been stuck with this task a long time now
I'm fairly new to windows phone programming.
I need to store data on the phone when the app closes, and load the data when the app starts.
Specificly BitmapImages, dictionaries of all types and simple integers, bool etc.
At the moment i have implemented a different method for every different type of data, that converts the dictionary to json, and then saves it as a .json file on the phone.
BitmapImages are of course not converted to json, they are saved in the way described in the WP documentary.
This technique is very painful, because every time I need to save data thats of a new type, i have to implement a method for that first.
Now my question, do you know any way to accomplish this task, thats more robust and flexible than mine?
I found an article about a local database on WP here and I'm now experimenting a bit with that, but I'm not sure if it can really do what I want.
I would really appreciate any help, because I have been stuck with this task a long time now
