There are 3 inner classes in android.provider.Settings
:
Each class has a different type of Preference. Can someone explain the role/scope of each of these classes?
Settings.Global
was introduced in API 17, and now contains some values that were previously stored in Settings.System
.
e.g. prior to API 17, the Device Name was stored in Settings.System
, and now it is stored in Settings.Global
.
(see related post for info on that: Android : Get “device name” on android tv)
Settings.Secure is same like Settings.Global Both are can be modified only by Settings apps or SystemUI app and other apps can read them Only difference is that Global will be applied to all users
On the other hand Settings.System can be modified by apps that uses dynamic preferences or other system apps
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With