1、AlarmManager,顾名思义,就是“提醒”,是Android中常用的一种系统级别的提示服务,在特定的时刻为我们广播一个指定的Intent。简单的说就是我们设定一个时间,然后在该时间到来时,AlarmManager为我们广播一个我们设定的Intent,通常我们使用 PendingIntent,PendingIntent可以理解为Intent的封装包,简单的说就是在Intent上在加个指定的...
分类:
移动开发 时间:
2015-02-27 17:13:16
阅读次数:
180
Develop篇Building a NotificationPREVIOUSNEXTTHIS LESSON TEACHES YOU TOCreate a Notification BuilderDefine the Notification's ActionSet the Notification...
分类:
移动开发 时间:
2015-02-27 16:58:27
阅读次数:
233
Notification可以作为状态栏的通知,实现这个效果需要使用NotificationManager实现控制类,才能实现对这个效果的显示下面是实现状态栏显示效果的通知:1. 首先在Layout建立两个Button,一个用于实现显示Notification,一个用于取消Notification2....
分类:
移动开发 时间:
2015-02-26 20:10:51
阅读次数:
149
文章简述了Unity3d如何在IOS平台上接入推送消息...
分类:
移动开发 时间:
2015-02-26 18:38:49
阅读次数:
252
错误内容
Attempting to schedule a local notification {fire date = 2015年2月26日 星期四 中国标准时间下午3:14:57, time zone = Asia/Shanghai (GMT+8) offset 28800, repeat interval = NSCalendarUnitDay, repeat count = UILoc...
分类:
移动开发 时间:
2015-02-26 16:41:42
阅读次数:
202
一个简单的应用场景:假如用户打开Activity以后,按Home键,此时Activity 进入-> onPause() -> onStop() 不可见。代码在此时机发送一个Notification到通知栏。当用户点击通知栏的Notification后,又重新onRestart() -> onStart() -> onResume() 切换回原Activity。
package zhangphil...
分类:
移动开发 时间:
2015-02-24 17:33:01
阅读次数:
205
一个小demo。点击 发送通知 按钮,则发送通知到设备的通知栏。点击 清除通知 则清除通知栏上的消息通知。
package zhangphil.notification;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.app.Activit...
分类:
移动开发 时间:
2015-02-20 17:30:30
阅读次数:
226
1.问答题
一.readwrite,readonly,assign,retain,copy,nonatomic属性的作用.
二.什么时候用delegate,什么时候用Notification?
三.目标-动作机制
四.ViewController的 loadView, viewDidLoad, viewDidUnload 分别是在什么时候调用的?在自定义ViewController的时候这...
分类:
移动开发 时间:
2015-02-15 10:48:30
阅读次数:
220
上一篇说到了通知栏Notification,提起通知栏,不得让人想到Service以及BroadcastReceive,作为android的4大组建的2个重要成员,我们没少和它们打交道。它们能够在无形中使我们的软件和网络、数据库、系统等进行交互,之后通过UI(Notification就是一种展示方式...
分类:
移动开发 时间:
2015-02-14 13:44:02
阅读次数:
320
1:Notification组成
Notification通知可以显示到系统的上方状态栏。
通知内容分为两部分
(1)Notification area 通知状态栏
(2)Notification drawer(抽屉)通知列表页面
当应用程序向android系统发出一个Notification时,通知首先以小图标的方式出现
在Notification area。用户再下拉状态栏,打...
分类:
移动开发 时间:
2015-02-14 11:04:38
阅读次数:
134