使用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);//读取值
需要把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);//读取值
相关文章推荐
- oracle分区表的测试
- MySQL入门很简单: 14MySQL日志
- Oracle&SQL数据库中返回错误代码和错误信息内置函数
- win10安装oracle 11g 时出现INS-13001环境不满足最低要求
- MongoDB数据库安装图解
- 数据库的连接串
- 数据库索引实现原理
- SqlServer两种分页以及效率对比
- 专利系统数据库连接出现 base-64字符串中的无效字符 错误
- mongodb 与mysql 操作对照表
- MySQL基本函数
- 数据库显示日期时仅仅显示“年-月-日”的问题
- 经典SQL语句大全
- Redis命令-有序集合-zrem
- 机器学习数据集
- Mysql Hash索引
- mysql之日期函数
- python操作redis-set
- sql通配符+sql中查询条件包含下划线等通配符的写法
- 使用数据库存储过程完成一个简单分页