Does anyone know if android supports sharing the same sharedpreference across multiple Android Modules compiled in one project?
i have two shared preferences and currently when i try to access some data from a shared prefence outside of the current module, it doesnt work and creates a new sharedPrefence instead
example
Module one:
mSharedPreferences = context.getSharedPreferences(
"pref", Context.MODE_PRIVATE);
Module Two:
mSharedPreferences = context.getSharedPreferences(
"pref", Context.MODE_PRIVATE);
It creates two preference file instead of one where both modules can share the data