Take the 2-minute tour ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

I want to know where Android stores the data of SharedPreferences in actual Android devices?

In PC I found this data under /data/data/pkg_name/shared_prefs/pkg_name.xml

share|improve this question

1 Answer 1

Well, the path is right. It's

/<datadir>/<pkg_name/shared_prefs/<pref_name>.xml

Where <datadir> is usually /data/data

share|improve this answer
    
okay but in device where do i find this .xml? –  juned Jun 1 '12 at 9:07
1  
Have you looked at /data/data/<pkg_name/shared_prefs/? –  Flow Jun 1 '12 at 9:13
    
i have samsung galaxy y in that where do i find this path? –  juned Jun 1 '12 at 9:15
1  
Try adb shell to open a shell and cd into the path. You may need root to do so. –  Flow Jun 1 '12 at 9:16
1  
Oh sorry, since you mentioned in your profile that you had some Android Development experience I assumed that you are familiar with adb: Check out developer.android.com/guide/developing/tools/adb.html –  Flow Jun 1 '12 at 9:28

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.