1.Android 如何引用com.android.internal.R下的资源
Android 如何引用com.android.internal.R目录下的资源
- Resources.getSystem().getIdentifier("config_navBarInteractionMode", "integer", "android")
- Resources.getSystem().getIdentifier("ic_text_dot", "drawable", "android")
2.SettingsProvider
- SettingsProvider对数据进行了分类,分别是Global、System、Secure三种类型,它们的区别如下:
- Global:所有的偏好设置对系统的所有用户公开,第三方APP有读没有写的权限;
- System:包含各种各样的用户偏好系统设置;
- Secure:安全性的用户偏好系统设置,第三方APP有读没有写的权限。