startActivityForResult(Intent intent, int
requestCode)onActivityResult(int requestCode, int resultCode, Intent
data)setResult(int resultCode, Intent d...
分类:
移动开发 时间:
2014-05-15 15:48:49
阅读次数:
372
一概念
PendingIntent就是一个可以在满足一定条件下执行的Intent,它相比于Intent的优势在于自己携带有Context对象,这样他就不必依赖于某个activity才可以存在。
它和Intent的主要区别在于Intent的执行立刻的,而pendingIntent的执行不是立刻的。pendingIntent执行的操作实质上是参数传进来的Intent的操作,但是使用pendin...
分类:
移动开发 时间:
2014-05-15 07:23:21
阅读次数:
308
PropertyProvider是取得监控指标的组件,下面给出Resource.Type与PropertyProvider对应关系:
Resource.Type
PropertyProvider
Cluster
GangliaReportPropertyProvider
Service
NagiosProperty...
分类:
其他好文 时间:
2014-05-15 07:22:40
阅读次数:
257
上一博文介绍了init进程启动,在解析init.rc 的时候会把zygote加到service列表中,并最终启动,zygote启动的实际是app_process程序。zygote是init进程的子进程。在Android系统中,所有的应用程序以及系统服务,包括SystemServer都是由Zygote fork出来的,这就是为什么它叫zygote(受精卵)的原因。我们再来看一下.rc文件的描述:...
分类:
移动开发 时间:
2014-05-15 06:11:35
阅读次数:
383
LeetCode-001 Two Sum
Given an array of integers, find two numbers such that they add up to a specific target number.
The function twoSum should return indices of the two numbers such that they add up to the target, where index1 must be less than index2...
分类:
其他好文 时间:
2014-05-15 04:34:50
阅读次数:
293
我们在Intent传递传递对象,可以有三种方式,实现Serializable接口、实现Parcelable接口,使用json格式序列化与反序列化。
在此我们使用第二方式,现实Parcelable接口,实现Parcelable需要以下操作。
1.writeToParcel 方法:该方法将类的数据写入外部提供的Parcel中。
2.describeContents 方法:返回内容...
分类:
其他好文 时间:
2014-05-15 04:25:44
阅读次数:
245
微软实战训练营 上海交大(A)实验班、(X)重点班 内部课程资料 链接:http://pan.baidu.com/s/1jGsTjq2 密码:0wmf...
分类:
Web程序 时间:
2014-05-15 03:22:20
阅读次数:
394
目前最完整的,需要注册的动作匹配如下:
IntentFilter intentFilter = new IntentFilter(Intent.ACTION_MEDIA_MOUNTED);
intentFilter.addAction(Intent.ACTION_MEDIA_UNMOUNTED);
intentFilter.addAction(Intent.ACT...
分类:
移动开发 时间:
2014-05-14 14:45:27
阅读次数:
361
nop中公共接口为IRepository,该接口主要在Service接口中使用,条件是要在IOC中注入所有的IRepository实现类。这里IRepository的实现类就是EfRepository,在这里IRepository和EfRepository都为泛型,所以在把EfRepositor.....
分类:
其他好文 时间:
2014-05-14 12:08:18
阅读次数:
312
Web Service
是一种新的web应用程序分支,他们是自包含、自描述、模块化的应用,可以发布、定位、通过web调用。Web
Service可以执行从简单的请求到复杂商务处理的任何功能。一旦部署以后,其他Web Service应用程序可以发现并调用它部署的服务。
实际上,WebServi...
分类:
编程语言 时间:
2014-05-14 11:05:40
阅读次数:
523