In Android development, we often need to keep small amounts of simple types of data locally, such as user names and passwords. The data to be saved is generally saved using SharedPreferences. After calling the SharedPreferences class, you may need to check to see if the data file stored in SharedPreferences meets your assumptions. This article will briefly describe how to locate the file stored in SharedPreferences in Android Studio. After opening Android Studio, click on device File Explore on the right

Locate the data/data directory

Check the package name of the current project, for example mine is com.example.android_project

So my SharedPreferences storage address/data/data/com. Example. Android_project/shared_prefs

Open this folder to see the stored data files!