安卓 开发笔记index 安卓基础 Fragment总结 安卓 BroadcastReceiver笔记 安卓 Notification-通知总结 开源框架笔记 安卓 okhttp小结 EventBus框架总结 安卓 图片加载框架ImageLoader 第三方SDK 安卓 短信验证MobSMS集成 开 ...
分类:
移动开发 时间:
2017-07-20 00:46:24
阅读次数:
287
通知(Notification)1、通知的基本用法 //创建 NotificationManager 实例 NotificationManager manager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE); Noti... ...
分类:
其他好文 时间:
2017-07-13 16:29:40
阅读次数:
170
通知(Notification)1、通知的基本用法 //创建 NotificationManager 实例 NotificationManager manager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE); Noti... ...
分类:
其他好文 时间:
2017-07-12 23:35:33
阅读次数:
246
pendingIntent字面意义:等待的。未决定的Intent。 要得到一个pendingIntent对象,用法类的静态方法 getActivity(Context, int, Intent, int),getBroadcast(Context, int, Intent, int),getServ ...
分类:
移动开发 时间:
2017-07-09 17:22:16
阅读次数:
206
通过接收REACHABILITY_RECOVE_NOTIFICATION通知来获取网络状态。可是在弱网络下可能出现收不到通知的情况,iphone 4s有时候也出现收不到网络通知的情况。其他90%以上的情况都能收到网络通知。 登录时能够依据该通知来触发自己主动登录。防止没有收到网络通知就登录,导致登录 ...
分类:
其他好文 时间:
2017-07-09 13:43:00
阅读次数:
125
1.准备两台虚拟服务器(DR),分别安装ipvsadm和keepalivedyum-yinstallipvsadm
yum-yinstallkeepalived2.配置keepalived.conf#修改IP为192.168.2.137的DR
vi/etc/keepalived/keepalived.conf
#修改内容如下
!ConfigurationFileforkeepalived
global_defs{
notification_ema..
分类:
其他好文 时间:
2017-07-07 20:03:10
阅读次数:
282
没有添加额外的震动及声音效果,这里直接实现了通知的功能,看效果吧: MainActivity.java package com.example.notification; import android.os.Bundle; import android.annotation.SuppressLint ...
分类:
移动开发 时间:
2017-07-03 18:04:41
阅读次数:
228
iPhone上的距离传感器通过UIDevice开启,开启后系统以Notification的方式通知。 ①开启距离传感器。监听通知: - (void)viewDidLoad { [super viewDidLoad]; // 开启传感器在iOS3之后通过UIDevice的currentDevice的p ...
分类:
其他好文 时间:
2017-06-30 21:02:41
阅读次数:
155
1、自定义一个带按钮的Notification布局:layout_notification; 2、创建Notification: RemoteViews views = new RemoteViews(getPackageName(),R.layout.layout_nitification); / ...
分类:
移动开发 时间:
2017-06-28 13:08:11
阅读次数:
481
Notification的作用 Notification是一种全局效果的通知,在系统的通知栏中显示。既然作为通知,其基本作用有: 显示接收到短消息、即时信息等 显示客户端的推送(广告、优惠、新闻等) 显示正在进行的事物(后台运行的程序,如音乐播放进度、下载进度) Notification的基本操作: ...
分类:
其他好文 时间:
2017-06-27 23:37:01
阅读次数:
259