XSharedPreferences with androidx.preference #169
Answered
by
farfromrefug
farfromrefug
asked this question in
Q&A
-
I try to have settings in my module. Now i want to be able to read those settings from my module extending private val pref by lazy {
XSharedPreferences(BuildConfig.APPLICATION_ID, "prefs")
} But even if set a value for "key" through my SettingsActivity, |
Beta Was this translation helpful? Give feedback.
Answered by
farfromrefug
Jan 23, 2025
Replies: 1 comment
-
Ok i managed to get it to work:
getPreferenceManager().setSharedPreferencesMode(Context.MODE_WORLD_READABLE); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
farfromrefug
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ok i managed to get it to work:
XSharedPreferences(BuildConfig.APPLICATION_ID)
xposedsharedprefs
metadata in your manifestonCreatePreferences
call