摘要: 前两天帮同学写了一个很小的应用程序,刚好用到通知栏。虽然使用起来很简单,但还是贴在这里备用吧,后期消息推送时会用到。发送通知的步骤如下:1).获取通知管理器NotificationManager mNotificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);2).新建一个通知,指定其图标和标题int icon = android.R.drawable.stat_notify_chat;long when = System.currentTimeMillis();//第一个参 阅读全文
posted @ 2012-07-25 14:43 TeamWork 阅读(323) 评论(0) 推荐(0) 编辑