I save some value in SharedPreferences. I know this is a xml file, that are sandboxed to prevent other applications from being able to access the values.
-
I want to know a structure of SharedPreferences, or just like a original xml file?
All SharedPreferences will be save in only 1 xml file? -
User can clear data of application, that mean all of my SharedPreferences will gone. How can i protect my saved information?
Regards
Yes SharedPreferences is an xml file. But it doesnt have to be one xml file you can vary this like
SharedPreferences sharedPreferences = getSharedPreferences("options.xml", MODE_PRIVATE);If user clear application data no data will left about application.