Why is my data folder empty in DDMS perspective

2019-08-27 07:28发布

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条回答
来,给爷笑一个
2楼-- · 2019-08-27 07:59

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?

查看更多
登录 后发表回答