1 public class NotificationTest extends Activity 2 { 3 static final int NOTIFICATION_ID = 0x123; 4 NotificationManager nm; 5 6 @Override...
分类:
移动开发 时间:
2014-11-04 16:43:19
阅读次数:
253
在android中有时会在主界面上收到某些应用的推送,有的可以包含图片,声音或者震动效果,当点击这些提示时,有时还可以进入到发送提示的的应用。
这些提示的推送就是通知,当然通知早根本上也是你一种服务。
首先想要使用通知就必须使用到Notification.Builder 和NotificationManager这两个类
使用Notification.Builder来取...
分类:
移动开发 时间:
2014-09-20 15:24:17
阅读次数:
277
private void showNotification() { // 消息通知栏 // 定义NotificationManager String ns = Context.NOTIFICATION_SERVICE; Notification...
分类:
移动开发 时间:
2014-09-09 19:55:09
阅读次数:
226
使用Android Notification Ongoing技术,实现“0号首页”,成为移动应用的快捷门户...
分类:
移动开发 时间:
2014-09-06 22:34:54
阅读次数:
299
使用Android Notification Ongoing技术,实现“0号首页”,成为移动应用的快捷门户
分类:
移动开发 时间:
2014-09-06 22:32:23
阅读次数:
255
public class Notifier {
private static final String TAG = Notifier.class.getSimpleName();
private static Notifier instance;
private Context mContext;
private static final int NOTIFICATION_ID_1 =...
分类:
移动开发 时间:
2014-09-01 17:53:53
阅读次数:
812
通知的使用的各种总结有不少,csdn上有不少大牛的总结,有一个感觉写的非常到位,可惜忘记了,试着找了下,没有找到。
在此就把最近遇到的各种问题拿出来与大家分享。...
分类:
移动开发 时间:
2014-08-21 15:03:24
阅读次数:
554
Android Notification通知详解
Notification.Builder类中提供的方法:
builder.setAutoCancel(); 设置点击通知后,状态栏自动删除通知。
builder.setSmallIcon(R.drawable.alert); 设置通知小图标
builder.setLargeIcon(R.drawable.alert2); 设置通知大图标
builder.setContentTitle("标题"); 设置通知标题
builder.setContentText(...
分类:
移动开发 时间:
2014-08-09 11:39:17
阅读次数:
516
最近一直在研究 android ,并一边研究一边做应用。其中遇到了把程序通知常驻在 Notification 栏,并且不能被 clear 掉(就像android QQ一样)的问题。经过研究实现了其功能,现把 Notification 的使用总结如下:
Notification 的使用需要导入 3 个类
1
2
3
impo...
分类:
移动开发 时间:
2014-07-30 17:32:34
阅读次数:
314
开启一个服务,服务中 启动一个通知。 通知中 下载。Android之Notification的多种用法 http://blog.csdn.net/loongggdroid/article/details/17616509 Android多任务下载,使用Notification更新进度条:http:/...
分类:
移动开发 时间:
2014-07-22 22:54:53
阅读次数:
244