新建一个基于对话框的工程,添加一个按钮,修改按钮ID,这里为ID_BTN_OPENFILE,为按钮添加消息响应事件,这里我打开文件保存对话框:
void CAccelDlg::OnBtnOpenfile()
{
// TODO: Add your control notification handler code here
CFileDialog dlg (TRUE);
dlg.DoMo...
分类:
其他好文 时间:
2014-08-05 22:44:20
阅读次数:
234
public class NotificationTest extends Activity
{
static final int NOTIFICATION_ID = 0x1123;
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setC...
分类:
移动开发 时间:
2014-08-05 19:23:00
阅读次数:
202
这样来写:
public void onCreate() {
super.onCreate();
ntfmngr = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
setNotifyType(R.drawable.logo,"aaaaaaaaaaa",3);
}
private void setN...
分类:
移动开发 时间:
2014-08-02 07:42:43
阅读次数:
218
//发送通知NSNotification*updateNotifi = [NSNotificationnotificationWithName:notification_name_update_pushobject:nil]; [[NSNotificationCenterdefaultCenter....
分类:
其他好文 时间:
2014-08-02 01:33:42
阅读次数:
287
最近一直在研究 android ,并一边研究一边做应用。其中遇到了把程序通知常驻在 Notification 栏,并且不能被 clear 掉(就像android QQ一样)的问题。经过研究实现了其功能,现把 Notification 的使用总结如下:
Notification 的使用需要导入 3 个类
1
2
3
impo...
分类:
移动开发 时间:
2014-07-30 17:32:34
阅读次数:
314
Swift创建Notification通知创建一个SingleView Application打开AppDelegate.swift,在方法application(application:UIApplication,didFinishLaunchingWithOptions launchOption...
分类:
其他好文 时间:
2014-07-30 00:39:22
阅读次数:
971
MainActivity如下:
package cc.cu;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.app.Activity;
import android...
分类:
其他好文 时间:
2014-07-29 17:47:02
阅读次数:
212
1. push原理iOS push 工作机制可以用下图简要概括Provider:应用自己的服务器;APNS:Apple Push Notification Service的简称,苹果的PUSH服务器;push的主要工作流程是:iOS设备连接网络后,会自动与APNS保持类似TCP的长链接,等待APNS...
分类:
移动开发 时间:
2014-07-29 16:50:22
阅读次数:
432
创建通知
为了创建在手机与可穿戴设备中都能展现的通知,可以使用 NotificationCompat.Builder。通过该类创建的通知,系统会处理该通知是否展现在手机或者穿戴设备中。
导入必要的类库
在开发之前首先需要导入以下类库
importandroid.support.v4.app.NotificationCompat;
importandroid.support.v4.a...
分类:
移动开发 时间:
2014-07-29 13:15:27
阅读次数:
335
在发送一个Notification前,我们需要准备好一个NotificationManagerNotificationManager manager = (NotificationManager) this.getSystemService(Context.NOTIFICATION_SERVICE)...
分类:
其他好文 时间:
2014-07-28 21:25:24
阅读次数:
165