Did you know that you can look at your SharedPreferences file?
If during development you want to inspect what your SharedPreferences now contain, you can pull a copy of the XML file from the emulator.
In Eclipse, you can do that by following these steps:
- Open the DDMS perspective (Window > Open Perspective > Other > DDMS).
- Click on the File Explorer tab and navigate to your app’s
data
folder (that’s under data/data//shared_prefs/). - Choose the file you want to download.
- Click on the Pull file from device button.