Alarm Service和Alarm Controller 例子非常类似,只是Alarm Service是用来Schedule一个Service,而前面的例子是来Schedule一个Broadcast。前面说过PendingIntent ,可以来描述一个Activity ,Broadcast,或是...
分类:
移动开发 时间:
2015-03-05 19:08:41
阅读次数:
207
Alarm Controller演示如何在Android应用中使用Alarm事件,其功能和java.util.Timer ,TimerTask类似。但Alarm可以即使当前应用退出后也可以做到Schedule一个任务在指定的时刻执行。AlarmManager 用于管理Alarm事件,支持单次执行或重...
分类:
移动开发 时间:
2015-03-05 18:52:45
阅读次数:
160
通知(Notification)是Android系统中常用的一种通知方式,当手机有未接电话的时候,Android设备顶部状态栏里就会有提示小图标。当下拉状态栏时可以查看这些快讯。下面通过一个例子具体展示通知的基本使用方法。main.xml1. 2. 6. 10. 14. 主界面就放了一个提示文本te...
分类:
其他好文 时间:
2015-03-03 20:10:03
阅读次数:
169
一故障描述我在台湾合作方给定的两台虚拟机上部署HAProxy+Keepalived负载均衡高可用方案。在配置完Keepalived后,重新启动Keepalived,Keepalived没有绑定VIP。keepalived.conf的内容LB1Master!ConfigurationFileforkeepalived
global_defs{
notification_email{
admin@exampl..
分类:
其他好文 时间:
2015-03-03 18:49:37
阅读次数:
2181
一、BroadcastReceiver的基本概念广播接收者,无界面,用来接收系统事件或自定义广播(intent形式)。可以用它对外部事件进行过滤并只对感兴趣的事件作出响应,比如网络变化,电量变化等,也可以是启动一个activity或Service或弹出一个Notification等。广播分类:随机广...
分类:
其他好文 时间:
2015-03-02 18:36:24
阅读次数:
126
1, 构造intent Intent mIntent = new Intent("android.intent.action.MAIN"); ComponentName comp = new ComponentName( "c...
分类:
其他好文 时间:
2015-03-02 16:45:27
阅读次数:
208
之前写的一篇关于消息推送的博文:)http://www.cnblogs.com/developersupport/p/Azure-Service-Bus-Notification-Hub.html
NotificationsIN THIS DOCUMENTDesign ConsiderationsCreating a NotificationRequired notification contentsOptional notification contents and settingsNoti...
分类:
移动开发 时间:
2015-02-28 12:51:26
阅读次数:
310