skip to Main Content

In my project, I need to see the location of my shared preference where can I see it.

2

Answers


  1. SharedPreferences are stored in an XML file in the app data folder, i.e.

    /data/data/YOUR_PACKAGE_NAME/shared_prefs/YOUR_PREFS_NAME.xml
    

    or the default preferences at:

    /data/data/YOUR_PACKAGE_NAME/shared_prefs/YOUR_PACKAGE_NAME_preferences.xml
    

    SharedPreferences added during runtime are not stored in the Eclipse project.

    Note: Accessing /data/data/<package_name> requires superuser privileges

    Login or Signup to reply.
  2. Go to device File explorer at the right bottom of your android studio. From there go to data-> data->(your package)->shared preferences

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search