// 执行通知一定要退出应用或挂起应用(进入后台)才能收到通知。// 创建本地通知UILocalNotification *notification = [[UILocalNotification alloc] init];// 通知触发时间// 5秒钟之后触发notification.fireDa...
分类:
其他好文 时间:
2014-06-29 00:11:49
阅读次数:
164
在应用中通常会有需求要让自己的服务不被系统回收,或者回收后立刻再次启动。肯能对系统而言,这样的需求不是太友好,所以实现的方法也很杂。在这里稍稍记录下一些做法。1、通过Notification通过设置一个不显示的Notification,并标识为前台。// 设置为前台serviceNotificati...
分类:
其他好文 时间:
2014-06-28 12:22:55
阅读次数:
204
本贴在http://www.cnblogs.com/hanyonglu/archive/2012/03/16/2399655.html下略为改动。Apndroid Push Notification的特点:快速集成:提供一种比C2DM更加快捷的使用方式,避免各种限制. 无需架设服务器:通过使用"云服...
分类:
移动开发 时间:
2014-06-25 22:23:39
阅读次数:
387
1:MyServicepublic class MyService extends IntentService{ AlarmManager alarmManager = null; PendingIntent alarmIntent = null; public MySe...
分类:
移动开发 时间:
2014-06-25 19:16:20
阅读次数:
261
1. 浏览文件 1 void CDlgCompare::OnBnClickedBtnSel() 2 { 3 // TODO: Add your control notification handler code here 4 UpdateData(TRUE); 5 CFil...
分类:
其他好文 时间:
2014-06-23 06:28:47
阅读次数:
328
貌似不影响提交。。。。。。。。还是有人提交成了。昨天晚上提交软件审核,遇到了Missing Push Notification Entitlement的问题。问题起因:这个版本我添加了PUSH推送功能,然后上传软件后,就提示Missing Push Notification Entitlement。...
分类:
移动开发 时间:
2014-06-20 21:32:02
阅读次数:
264
os apns-apple notification server 与第三方provider的通信原理网上已有很多介绍,这里不再介绍,有想了解的大家可以去IOS官网https://developer.apple.com/library/ios/documentation/NetworkingInte...
分类:
移动开发 时间:
2014-06-20 16:49:57
阅读次数:
296
208 Introducing CloudKit
231 Advanced CloudKit
CloudKit的对象粗略分为三个层次:Contriner、Database(分Public和Private)、Record
操作包括存储、获取或修改Record
可以注册关注Record的变化来获得Notification
绝大多数的操作是异步的
存储Record时需要注...
分类:
其他好文 时间:
2014-06-18 07:35:46
阅读次数:
228
取消alarm使用AlarmManager.cancel()函数,传入参数是个PendingIntent实例。该函数会将所有跟这个PendingIntent相同的Alarm全部取消,怎么判断两者是否相同,android使用的是intent.filterEquals(),具体就是判断两个Pending...
分类:
移动开发 时间:
2014-06-15 12:48:20
阅读次数:
392
一、等待与通知
public final void wait() throws InterruptedException
等待条件的发生。
public final void wait(long timeout) throws InterruptedException
等待条件的发生。如果通知没有在timeout指定的时间内发生,它还是会返回。
public fi...
分类:
编程语言 时间:
2014-06-14 14:10:33
阅读次数:
425