什么是SharePreferences
SharedPreferences类,它是一个轻量级的存储类,特别适合用于保存软件配置参数。
SharedPreferences保存数据,其背后是用xml文件存放数据,文件存放在/data/data//shared_prefs目录下。
为什么用SharePreferences
SharePreferences是用XML文件来实现的,那么我...
分类:
其他好文 时间:
2015-04-30 21:59:36
阅读次数:
499
本演示介绍了MEF的生命周期管理,重点介绍了导出部件的三种创建策略,分别是:CreationPolicy.Any、CreationPolicy.Shared、CreationPolicy.NonShared。...
分类:
其他好文 时间:
2015-04-30 06:22:28
阅读次数:
145
10054 The Necklace
My little sister had a beautiful necklace made of colorful beads. Two successive beads in the necklace shared a common color at their meeting point. The figure below shows a segme...
分类:
其他好文 时间:
2015-04-29 21:52:47
阅读次数:
227
我们平常保存一些数据,都会用到SharedPreferences,他是保存在手机里面的,具体路径是data/data/你的包名/shared_prefs/保存的文件名.xml,SharedPreferences的使用也很简单,我自己就写了一个SharedPreferences的工具类,然后就保存在这...
分类:
其他好文 时间:
2015-04-28 17:30:24
阅读次数:
113
一、下载并解压
$ wget http://cdn.mysql.com/Downloads/MySQL-5.5/MySQL-5.5.42-1.el6.x86_64.rpm-bundle.tar
解压后得到以下几个文件:
$ tar -xvf MySQL-5.5.42-1.el6.x86_64.rpm-bundle.tar
MySQL-shared-5.5.42-1.el6.x86_64...
分类:
数据库 时间:
2015-04-28 16:16:21
阅读次数:
173
Oracle® Database 2 Day + Real Application Clusters Guide
11g Release 2 (11.2)
E17264-13
2 Preparing Your Cluster
About Shared Storage
Note:
If you choose not to use Oracle ASM for storing yo...
分类:
其他好文 时间:
2015-04-28 14:08:30
阅读次数:
161
执行: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/arm-linux-androideabi-gdb out/target/product/rk30sdk/symbols/system/bin/app_process报错: ....
分类:
移动开发 时间:
2015-04-28 13:32:20
阅读次数:
230
//C++智能指针模板类复习
#include
#include
using namespace std;
//智能指针用于确保程序不存在内存和资源泄漏且是异常安全的。
//C++98中提供了auto_ptr,C++11摒弃了auto_ptr,并提出了unique_ptr 、shared_ptr、weak_ptr
void show1()
{
int* p = ne...
分类:
编程语言 时间:
2015-04-27 21:57:40
阅读次数:
247
出现如下报错libmysqlclient.so.16()(64bit)isneededbyMySQL-shared-compat-5.1.73-1.rhel5.x86_64下载server对应的mysql兼容包即可解决MySQL-shared-compat-5.5.43-1.el6.x86_64.rpm
分类:
数据库 时间:
2015-04-27 15:28:48
阅读次数:
192
1、系统环境:
Redhat 6.4 企业版
Oracle11.2.0.2 RAC+ASM
2、报错信息:/oracle/app/11.2.0/grid/bin/clscfg.bin:
error while loading shared libraries: libcap.so.1: cannot open shared object f...
分类:
数据库 时间:
2015-04-27 11:22:12
阅读次数:
185