您的位置:首页 > 产品设计 > UI/UE

notification.builder代替notification的setLatestEventInfo()方法

2017-04-01 10:12 531 查看
Notification notification = new Notification.Builder(this)
.setContentTitle("This is title")
.setContentText("This is content")
.setSmallIcon(R.mipmap.ic_launcher)
//                .setLargeIcon(aBitmap)
.build();
startForeground(1, notification);
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  Android
相关文章推荐