1、Service的种类 按运行地点分类: 其实remote服务还是很少见的,并且一般都是系统服务。 按运行类型分类: 有同学可能会问,后台服务我们可以自己创建 ONGOING 的 Notification 这样就成为前台服务吗?答案是否定的,前台服务是在做了上述工作之后需要调用 startFore ...
分类:
移动开发 时间:
2016-03-28 18:24:32
阅读次数:
207
runloop相关基础类定义 1、日期对象 NSDate, NSDateFormatter NSDate的实例表示一个日期,线程可以借助于NSDateFormatter的实例实现NSDate对象和NSString对象的相互转换。 2、定时器 NSTimer 可以使用NSTimer的实例在一个NSRu ...
分类:
移动开发 时间:
2016-03-26 16:57:21
阅读次数:
231
Notification用于显示在手机状态栏的通知。一般通过NotificationManager服务来发送通知。
Notification.Builder类可以让我们更加方便的创建Notification对象。...
分类:
移动开发 时间:
2016-03-23 22:20:54
阅读次数:
177
#主master配置如下cat/etc/keepalived/keepalived.confglobal_defs{notification_email{failover@firewall.loc}#notification_email_fromAlexandre.Cassen@firewall.loc#smtp_server10.168.0.48#smtp_connect_timeout10router_idnginx}vrrp_scriptchk_haproxy{script"/etc/keep..
分类:
其他好文 时间:
2016-03-22 06:35:15
阅读次数:
737
@implementation ViewController - (void)viewDidLoad { [super viewDidLoad]; self.textF = [[UITextField alloc] initWithFrame:CGRectMake(100, 100, 100, 40
分类:
其他好文 时间:
2016-03-20 22:41:32
阅读次数:
229
PendingIntent pIntent = PendingIntent.getActivity(context, 0, intent, 0); 在接收端,接收的数据一直为null,在google官方网站查了下,发现问题出在flags上:PendingIntent.getActivity原型如下:
分类:
其他好文 时间:
2016-03-16 18:55:24
阅读次数:
124
keepalived既可以作为HA热备,也能作健康检查。1,安装keepalived2,把配置文件复制到/etc/keepalived/路径下,cp/usr/share/doc/keepalived/examples/ldirectord.conf.example/etc/keepalived/keepalived.conf3,修改配置文件global_defs{notification_email{#指定keepalived..
分类:
其他好文 时间:
2016-03-16 01:43:38
阅读次数:
206
Notification Message Corresponding WindowsConstant Message Description cn_CharToItem wm_CharToItem The wm_CharToItem message is sent to the parent of
分类:
其他好文 时间:
2016-03-15 23:35:41
阅读次数:
259