开启一个服务,服务中 启动一个通知。 通知中 下载。Android之Notification的多种用法 http://blog.csdn.net/loongggdroid/article/details/17616509 Android多任务下载,使用Notification更新进度条:http:/...
分类:
移动开发 时间:
2014-07-22 22:54:53
阅读次数:
244
Notification是用来在通知中心中显示信息的,这里讲解了其最简单的使用方式。关于PendingIntent和Intent的区别可以参考这篇文章:http://blog.csdn.net/zeng622peng/article/details/6180190MainActivity.javap...
分类:
其他好文 时间:
2014-07-22 22:40:33
阅读次数:
302
在红黑联盟上看到的,这几天一直考虑做一个Notification 的带下载功能的自定义通知,但没搞出来,无意中在论坛看到这个。先Mark,明天试试。
从Android 2.3(API level 9)开始Android用系统服务(Service)的方式提供了Download Manager来优化处理长时间的下载操作。Download Manager处理HTTP连接并监控连接中的状态变化以...
分类:
移动开发 时间:
2014-07-22 14:50:04
阅读次数:
345
1. 在Activity中的onCreate方法中加入如下代码: //Remove title bar
this.requestWindowFeature(Window.FEATURE_NO_TITLE);
//Remove notification bar
this.getWindow().setFlags(WindowManager.L...
分类:
移动开发 时间:
2014-07-21 10:08:56
阅读次数:
362
iOS页面间传值的方式(NSUserDefault/Delegate/NSNotification/Block/单例)实现了以下iOS页面间传值:1.委托delegate方式;2.通知notification方式;3.block方式;4.UserDefault或者文件方式;5.单例模式方式;6.通过...
分类:
移动开发 时间:
2014-07-18 15:01:43
阅读次数:
286
In one embodiment, a method includes sending to a mobile client computing device a first notification through a real-time push service, the first noti...
分类:
其他好文 时间:
2014-07-17 22:06:41
阅读次数:
603
Notification(通知) 是应用程序提醒用户某件事情已经发生了的一种方式,可以在“状态栏”和“通知托盘”中看到它。如我们更新程序的时候,可以通过Notification来实现下载进度。Notification 可以有以下动作来增强用户提醒:1.在状态栏中显示图标。2.灯光:手机LED呼吸灯闪...
分类:
其他好文 时间:
2014-07-14 15:43:59
阅读次数:
208
近期工作中,发现了一个bug,是和ListView Adapter有关的。产生了FC,描写叙述信息大约是"The content of the adapter has changed but ListView did not receive a notification. Make sure the...
分类:
其他好文 时间:
2014-07-13 17:51:11
阅读次数:
273
1.设置对话框为无边框方法
ModifyStyle(WS_CAPTION | WS_THICKFRAME, 0, SWP_FRAMECHANGED);
2.设置控件灰色与不灰色
void CMthread1Dlg::OnStop()
{
// TODO: Add your control notification handler code here
m_bRun = FA...
1)话筒
权限:telephony
api:navigator.moztelephony
链接参考:https://wiki.mozilla.org/WebAPI/WebTelephony
2) 扬声器
权限:audio
channels选项:["normal", "content",""notification", "alarm", "telephony","ringer"]
使用...
分类:
移动开发 时间:
2014-07-12 20:09:29
阅读次数:
228