How can I view the shared preferences file using Android Studio?

前端 未结 14 1070
甜味超标
甜味超标 2020-11-27 11:33

I\'m using shared preferences to store certain values for my app. I would like to see the file where the info is actually stored on my phone. I found many ways to do this on

14条回答
  •  盖世英雄少女心
    2020-11-27 12:08

    Android Studio -> Device File Explorer (right bottom corner) -> data -> data -> {package.id} -> shared-prefs

    Note: You need to connect mobile device to android studio and selected application should be in debug mode

提交回复
热议问题