int icon = R.drawable.ic_launcher;long when = System.currentTimeMillis();Notification noti = new Notification(icon, contentTitle, when);noti.flags |= ...
分类:
移动开发 时间:
2015-07-28 22:46:02
阅读次数:
260
关于 Builder 模式 详述:http://blog.csdn.net/jjwwmlp456/article/details/39890699
先来张图
看到 Android 中 使用了 Builder 模式的地方还是很多的。
使用时 大概如下:
Notification noti = new Notification.Builder(context).b...
分类:
移动开发 时间:
2015-07-03 12:27:42
阅读次数:
214
一、Mongdb3.0安装官网下载最新稳定版本的mongodb软体https://www.mongodb.org/downloads解压软体[root@test-weidangkouservice]#tarzxvfmongodb-linux-x86_64-rhel62-3.0.3.tgz
mongodb-linux-x86_64-rhel62-3.0.3/README
mongodb-linux-x86_64-rhel62-3.0.3/THIRD-PARTY-NOTI..
分类:
数据库 时间:
2015-07-01 06:26:46
阅读次数:
180
Il tuo equipaggio motore diesel è a conoscenza di quel motore volontà diesel è dotato di un intera linea distintiva di orologi di marca che potrebbe i...
分类:
数据库 时间:
2015-06-29 16:31:22
阅读次数:
147
根据activity的生命周期,在activity不显示时,会执行onStop函数(比如按下home键),所以你在onStop函数(按退出键除外)里面把notification放在通知栏里,再此显示时,把notification从通知栏里去掉。或者,只要程序在运行就一直显示通知栏图标。下面对Noti...
分类:
移动开发 时间:
2015-06-12 11:36:11
阅读次数:
155
在学习【状态栏通知】时,遇到代码被横线划掉,这是怎么回事呢?例如:package com.example.notification;import android.app.Activity;import android.app.AlertDialog;import android.app.Noti.....
分类:
移动开发 时间:
2015-04-15 12:47:36
阅读次数:
5113
1.变量的定义:是将变量名引用到变量值上unset:相当于将引用去除,然后根据php垃圾回收机制(变量值没有被任何一个变量引用),将变量回收。变量的命名规范【这一点不需要再研究。就是面向对象中,对小驼峰命名规则的使用】【有了utf8之后,使用中文也可以做变量名】变量在定义前直接被使用会报一个noti...
分类:
其他好文 时间:
2015-01-03 23:53:44
阅读次数:
327
//发送通知NotificationManager manger = (NotificationManager) this.getSystemService(NOTIFICATION_SERVICE);Notification noti = new Notification(R.drawable.i...
分类:
移动开发 时间:
2014-11-27 12:41:30
阅读次数:
158
一、控件消息的响应。在HelloDuilib例子中,程序不能退出,在这里,我将添加一个关闭按钮,当点击它时,调用PostQuitMessage进行退出。首先在界面的右上角添加一个关闭按钮,并取名为“btnClose”。然后在CHelloDuilibWnd中重载WindowImplBase::Noti...
分类:
其他好文 时间:
2014-11-19 23:56:14
阅读次数:
688
1、增加一个本地推送
//设置20秒之后
NSDate*date=[NSDatedateWithTimeIntervalSinceNow:20];
//chuagjian一个本地推送
UILocalNotification*noti=[[[UILocalNotificationalloc]init]autorelease];
if(noti){
//设置推送时间
noti.fireDate=date;
//设置时区
noti.timeZone=[NS..
分类:
移动开发 时间:
2014-10-22 06:34:45
阅读次数:
203