【测试步骤】:
1、进入短信界面
2、菜单-设置
3、修改短信中心号码(Set the SIM's smsc number) 保存
【测试结果】:提示保存成功,但是号码没有改变,退出重新进入设置才会看到号码更新
【预期结果】:提示保存成功,号码变为修改过的号码
相关Activity:通过Logcat中I/ActivityManager( 896):我们可以定位到该类-Messag...
分类:
其他好文 时间:
2014-06-19 11:47:49
阅读次数:
315
题目
Given an array of non-negative integers, you are initially positioned at the first index of the array.
Each element in the array represents your maximum jump length at that position.
...
分类:
其他好文 时间:
2014-06-19 11:46:47
阅读次数:
277
缘起
晚上和学生探讨参加此次2014全国大学生移动应用创新大赛,选择领域主要定位在教育方面,如关注留守儿童的相关应用、学生考卷的智能搜索服务等,也探讨了应用信息技术改进大学生学习效果等。
由于只有一个小时,最后还是没有确定好主题,下文略微探讨一下目前信息技术对教育领域的影响,以及存在的需求。
信息技术对教育(特别是高等教育)的影响
(1)...
分类:
其他好文 时间:
2014-06-19 10:44:39
阅读次数:
260
题目
Given an array of non-negative integers, you are initially positioned at the first index of the array.
Each element in the array represents your maximum jump length at that position.
...
分类:
其他好文 时间:
2014-06-19 10:05:39
阅读次数:
278
在项目中用到了Android的ViewPager组件,但是发现在滑动的时候不是特别流畅,有些小的滑动无法响应,于是考虑进行优化。
一开始考虑修改ViewPager中的一些参数,比如mTouchSlop等参数,继承ViewPager并且重写一些方法;
但是后来发现这种方法比较复杂,并且滑动不流畅的问题好像不在这里。
最后问题定位到ViewPager的嵌套上,因为在ViewPager所包含的vi...
分类:
其他好文 时间:
2014-06-15 19:56:24
阅读次数:
213
#include
#include
using std::cout;
using std::endl;
using std::cin;
using std::string;
int main(void){
string str1="We can insert a string";
string str2="a str into ";
//在字符串指定位置...
分类:
编程语言 时间:
2014-06-15 19:29:30
阅读次数:
251
题目:再一句话里面有P,I,U中的2个已知量,求第三个未知量。(P=I*U)
分析:字符串。利用'='定位已知量,然后将'='后面的的数字和单位分别读入处理。
说明:注意单位有m(10^-3),k(10^3),M(10^6)的前缀,以及小数点的处理。
#include
#include
#include
#include
using namespace std;
char Sat...
分类:
其他好文 时间:
2014-06-15 17:48:02
阅读次数:
199
题目
Given a sorted array of integers, find the starting and ending position of a given target value.
Your algorithm's runtime complexity must be in the order of O(log n).
If the target i...
分类:
其他好文 时间:
2014-06-15 16:53:32
阅读次数:
177
题目
Given a sorted array of integers, find the starting and ending position of a given target value.
解题思路:
查找一个数出现的范围,给一个排好序的数组和一个数,找出这个数在数组中出现的范围。
这个题直接使用一次遍历就可以得到结果,这样的时间复杂度为O(n)。但是对于有序数组我们一般可以使用二分查找可以得到更好的O(logn)的时间复杂度。我们可以使用二分查找找到这个数第一次出现的位置和这个数最后一次出现的位...
分类:
其他好文 时间:
2014-06-15 16:19:16
阅读次数:
237
H:/1021/00_block回调.h/*
通过block回调
定义block代码块,目的是解析完成之后调用
返回值是 void
参数是 数组,里面的每个成员是一个NSString*/
typedef void(^WeatherFinishedBlock)(NSArray *dataList);
@interface WeatherXMLPaser : NSObject
// 解析器...
分类:
移动开发 时间:
2014-06-13 20:37:58
阅读次数:
331