摘要: 后台机制的不同,算是iOS 和 Android的一大区别了,最近发布的iOS7又对后台处理做了一定的更改,找时间总结一下编码上的区别,先做个记录。先看看iOS的把,首先需要仔细阅读一下Apple的官方文档iOS App Programming Guide中的App States and Multit... 阅读全文
posted @ 2013-11-20 17:58 幻化成疯 阅读(1159) 评论(0) 推荐(0) 编辑
摘要: 这篇文章是做android的必读篇目,要仔细阅读,原文连接http://developer.android.com/guide/components/tasks-and-back-stack.html另外一篇http://developer.android.com/guide/topics/mani... 阅读全文
posted @ 2013-11-20 16:32 幻化成疯 阅读(408) 评论(0) 推荐(0) 编辑
摘要: 最近在程序中使用到了notification功能,自然,就涉及到了PendingIntent,下面总结下。1 什么是PendingIntentA description of an Intent and target action to perform with it. Instances of this class are created withgetActivity(Context, int, Intent, int),getActivities(Context, int, Intent[], int),getBroadcast(Context, int, Intent, int), a 阅读全文
posted @ 2013-11-20 15:24 幻化成疯 阅读(1200) 评论(0) 推荐(0) 编辑
摘要: 最近做程序时,有一个类似闹钟的功能,用notification唤醒程序后,希望能得到发出这个notification时的具体时间,就是notification右边写着的那个时间。查了notification相关的知识,没有发现能用的函数。后来突然想到了,可以在创建notificatoin的pendingIntent时,把具体的date 放到intent的extra 中,当activity启动后,就可以通过intent获得对应的date对象了! 阅读全文
posted @ 2013-11-20 11:38 幻化成疯 阅读(531) 评论(0) 推荐(0) 编辑