笔记如下
Video_2018-03-14_113405.gif //构建一个notification对象
Notification noti = new Notification.Builder(this)
.setContentTitle("我是一条消息 ")
.setContentText("嘿嘿")
.setSmallIcon(R.mipmap.ic_launcher)
.setLargeIcon(BitmapFactory.decodeResource(getResources(),R.mipmap.ic_launcher))
.build();
manager.notify(1,noti);
网友评论