我们知道,用户可能下载了Android应用后,以后就可能不会再次启动了,那么为了提醒用户再次启动这个应用完成相应的工作,我做了这个功能。
当然做这个功能的前提是,你得有个服务在后台运行,并且保证服务不会被系统杀死。
第一个方法是,利用notificationManager方式来提醒用户,第二种方式是利用弹框提醒用户。...
分类:
其他好文 时间:
2014-12-26 11:13:45
阅读次数:
177
Android 4.0以前:1: 普通的notificationprivate static final int NOTIFY_ID = 0;notificationManager = (NotificationManager)getSystemService(NOTIFICATION_SERVIC...
分类:
移动开发 时间:
2014-12-25 15:54:55
阅读次数:
139
很好的参考资料:http://www.raywenderlich.com/32960/apple-push-notification-services-in-ios-6-tutorial-part-1
中文的参考资料: 第一部分 http://www.tairan.com/archives/194
第二部分:http://www.tairan.com/archives/281
第三...
分类:
移动开发 时间:
2014-12-25 14:40:25
阅读次数:
358
被观察者subject可以注册或取消注册观察者,也能给观察者发送notification。观察者收到notification后就update listview。未完待续... public void notifyDataSetChanged() { mDataSetObservable...
分类:
其他好文 时间:
2014-12-25 06:34:10
阅读次数:
249
android之Notification通知我们在用手机的时候,如果来了短信,而我们没有点击查看的话,是不是在手机的最上边的状态栏里有一个短信的小图标提示啊?你是不是也想实现这种功能呢?今天的Notification就是解决这个问题的。[java]view plaincopypackagecn.co...
分类:
移动开发 时间:
2014-12-24 18:01:42
阅读次数:
174
issuesymptom:某日打开电脑,在输入用户名和密码后,出现错误提示:Windows无法连接到Systemeventnotificationservice服务。solution:推测为网络winsock目录服务出现问题。按住电源键5S强制重启,按F8进入安全模式。打开cmd命令窗口,输入netshwinsockresetcatalog.然后重启正..
package com.yarin.android.Examples_04_23;import android.app.Activity;import android.app.Notification;import android.app.NotificationManager;import and...
分类:
其他好文 时间:
2014-12-22 22:34:02
阅读次数:
193
转:http://blog.csdn.net/showhilllee/article/details/8631734APNS的推送机制首先我们看一下苹果官方给出的对ios推送机制的解释。如下图Provider就是我们自己程序的后台服务器,APNS是Apple Push Notification Se...
分类:
移动开发 时间:
2014-12-22 17:48:44
阅读次数:
290
原帖请看:http://cocoathings.blogspot.com/2013/01/introduction-to-user-notifications-in.html想要实现如图这样的notification popup弹出notification的代码如下NSUserNotificatio...
分类:
其他好文 时间:
2014-12-22 17:44:55
阅读次数:
352
事件通知(EventNotification)介绍了解事件通知事件通知是特殊类型的数据库对象,用于将有关服务器和数据库事件的信息发送到ServiceBroker服务。执行事件通知可对各种Transact-SQL数据定义语言(DDL)语句和SQL跟踪事件做出响应,采取的响应方式是将这些事件的相关信息发送到Ser..
分类:
其他好文 时间:
2014-12-18 19:05:13
阅读次数:
445