问题
I was trying SharedPreferences and everything works fine. According to the tutorial, after I change some preferences, I should find a folder named shared_prefs and a XML file which contains my preferences under the data folder in DDMS perspective. But mine is empty, why? Btw, I am debugging with real Android phone. Thx.
回答1:
If your SharedPreferences
are private, you need to be root on your device to see what is in this folder.
Check this post for more details: Android: Viewing SharedPreferences file?
来源:https://stackoverflow.com/questions/18862789/why-is-my-data-folder-empty-in-ddms-perspective