You need to override onSaveInstanceState(Bundle
savedInstanceState) and write the application state values you want to change to
the Bundle parameter ...
分类:
移动开发 时间:
2014-05-17 14:49:13
阅读次数:
292
1.用startActivityForResult()
启动一个singleTask任务时,系统是会立即返回结果的,onActivityResult()会收到RESULT_CANCELED,所以不要用此函数启动一个加载模式为singleTask的activity。因为当用户按下键盘上的Back键时,...
分类:
其他好文 时间:
2014-05-17 14:41:14
阅读次数:
317
1.Scatter/Gather I/Oa single system call to
read or write data between single data stream and multiple buffersThis type of
I/O is so named because the...
分类:
系统相关 时间:
2014-05-17 14:17:55
阅读次数:
571
【题目】
原文:
1.8 Assume you have a method isSubstring which checks if one word is a substring of another. Given two strings, s1 and s2, write code to check if s2 is a rotation of s1 using only one...
分类:
其他好文 时间:
2014-05-16 01:50:08
阅读次数:
311
在这之前,你要知道Task就是一个堆栈,栈顶的activity就是当前显示的activity,启动一个新的activity的时,一般直接压入堆栈,并成为当前运行的activity,前一个activity仍然在堆栈中,按下back键时,当前activity出栈,而前一个恢复为当前运行的activity...
分类:
其他好文 时间:
2014-05-16 00:40:58
阅读次数:
521
输出数字不同: write()输出数字转换为字符,println原样输出。输出null不同:
write()输出引用类型的时候调用的toString转换为String数据,因此如果对象为null那么直接抛出空指针异常。Println直接输出null。
分类:
其他好文 时间:
2014-05-15 22:28:14
阅读次数:
287
1各种编码A .1 html编码
-HTML标签this.Response.Write(this.Server.HtmlEncode("的作用将文本设置为标题样式!"));//使
等等的特殊符号,已文本性质显示输出:的作用将文本设置为标题样式!A.2不用html编码-HTML标签this.Respo...
分类:
Web程序 时间:
2014-05-15 18:07:30
阅读次数:
343
/// /// 信息写入记事本 /// /// /// public static void
Write(string text, string path) { try { DateTime newDat...
分类:
其他好文 时间:
2014-05-15 17:51:53
阅读次数:
262
连接管理器: 接受请求 创建线程 认证用户 建立安全连接并发控制: mbox:MDA C/S:
100 10分钟: 多版本并发控制: MVCC锁: 读锁:共享锁 写锁:独占锁 LOCK TABLES tb_name {READ|WRITE}; UNLOCK
TABLES...
分类:
数据库 时间:
2014-05-15 17:29:22
阅读次数:
423
今天在做Android电子词典的时候,数据库打不开,报错为:Could not open
the database in read/write mode。后来才发现犯了一个低级错误,没有设置权限。添加权限即可:希望大家不要犯这种白痴错误。
分类:
数据库 时间:
2014-05-15 17:22:42
阅读次数:
386