How to store SharedPreferences into file?
<p>I have been developing Android application which should have following function: it should store some data between Application executings; also if I delete application and re-install it app should restore values of data. I knew that I can store data into SharedPreferences (for working with data in my program) and serialize into file in onDestroy() event. But SharedPreferences is Non-Serializable class and I can't use it. Please, suggest me another way for my task, or tell me how I can serialize SharedPreferences. I know that I can just write important data into simple file but may be there is another means for my problem? Thank you</p>
