您的位置:首页 > 数据库

使用SystemProperties获取系统属性以及数据库读写操作

2016-04-20 10:14 351 查看
在使用SystemProperties.get("ro.build.product", "~~~");获取系统属性的时候,

需要把SDK中的layoutlib.jar导入到当前工程。

数据库问题:

Settings.System.putInt(mContext.getContentResolver(), "isStarted_AttrNameService", 1);//写入值

Settings.System.putInt(getContentResolver(), "isStarted_AttrNameService", 1);//写入值

Settings.System.getInt(mContentResolver, "start_stringId_tool", 0);//读取值
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: