DefaultValues 介绍了如何在XML中定义Preference的缺省值。
分类:
移动开发 时间:
2015-03-09 12:32:57
阅读次数:
146
我们在前面的例子Android ApiDemo示例解析(9):App->Activity->Persistent State 介绍了可以使用Shared Preferences来存储一些状态,Shared Preferences更一般的用法是用来存储一些应用程序偏好(设置)。包android.pre...
分类:
移动开发 时间:
2015-03-09 12:17:29
阅读次数:
176
第12章 动态内存
1. 申请并使用shared_ptr. P400
2. shared_ptr计数. P402
赋值, 拷贝, 向函数传递一个智能指针, 或函数返回一个智能指针都会增加当前智能指针的计数.
3. 不同对象间利用智能指针共享数据的例子.
4. 使用new来动态申请内存. P407
默认情况下...
分类:
编程语言 时间:
2015-03-09 10:57:10
阅读次数:
133
首先,要统一MyEclipse的字符编码,步骤如下:1、进入Window--Preferences--General--Workspace,Text file encoding 选项中默认的Default(GBK)选项更改为Other,并将值设为utf-8;2、进入Window--Preferenc...
分类:
数据库 时间:
2015-03-08 19:57:15
阅读次数:
182
Given two sets of integers, the similarity of the sets is defined to be Nc/Nt*100%, where Nc is the number of distinct common numbers shared by the two sets,
and Nt is the total number of distinct n...
分类:
其他好文 时间:
2015-03-07 17:13:09
阅读次数:
156
TR133919中给出GAA的架构
其中,GBA包括HTTP Digest, Pre-Shared Key TLS, IKE with pre-shared secret and a priori any mechanism based on username...
分类:
其他好文 时间:
2015-03-07 11:41:00
阅读次数:
244
1.下载:http://www.sublimetext.com/32.支持网站https://packagecontrol.io/3.字体、主题风格等设置当需要更改主题时,直接可以通过“preferences”—>“颜色主题”来设置, 查找函数:ctrl+r gotoanything: ctr...
分类:
其他好文 时间:
2015-03-07 09:04:07
阅读次数:
117
编辑android.mk文件,替换为如下内容LOCAL_PATH := $(call my-dir) LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := cocos2dcpp_shared LOCAL_MODULE_F...
分类:
移动开发 时间:
2015-03-06 17:00:48
阅读次数:
158
链接时可以通过-L和-l来指定自己的库,因此链接可以通过,但是运行时,系统仍无法找到指定的库,需要简单配置一下。
解决方法1:
可以直接在将自己的库所在路径添加到/etc/ld.so.conf文件中。但一般这个文件中的内容都是一句“include /etc/ld.so.conf.d/*.conf”,因此最好在/etc/ld.so.conf.d/目录下新建一个文件
, 如“xxx.con...
分类:
系统相关 时间:
2015-03-06 12:49:50
阅读次数:
247
file /sbin/init 或者 file /bin/ls/sbin/init: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2...
分类:
系统相关 时间:
2015-03-06 12:20:40
阅读次数:
216