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);
相关文章推荐
- Androidn Notification的使用,解决找不到setLatestEventInfo方法
- Android中关于setLatestEventInfo()过时以及构建Notification的解决方法
- 安卓状态栏通知Notification方法更新(setLatestEventInfo)
- 关于notification的使用,setLatestEventInfo方法在新SDK不能使用的解决方法
- Notification用法,注意API版本,API大于11的setLatestEventInfo()方法已经不适用
- [Android] Notification.setLatestEventInfo()方法被移除的问题
- Androidn Notification的使用,解决找不到setLatestEventInfo方法
- 关于notification的使用,setLatestEventInfo方法在新SDK不能使用的解决方法
- 关于Notification中setLatestEventInfo方法已弃用
- Androidn Notification的使用,解决找不到setLatestEventInfo方法
- Androidn Notification的使用,解决找不到setLatestEventInfo方法
- Android中关于setLatestEventInfo()过时以及构建Notification的解决方法
- Android中关于setLatestEventInfo()过时以及构建Notification的解决方法
- (Notification)setLatestEventInfo方法在新SDK不能使用的解决方法及2个Error
- Android Notification setLatestEventInfo方法已废弃
- 关于notification的使用,setLatestEventInfo方法在新SDK不能使用的解决方法
- Androidn Notification在新API中的使用(解决找不到setLatestEventInfo方法)
- Androidn Notification的使用,解决找不到setLatestEventInfo方法
- 关于notification.setLatestEventInfo()的替代方法
- Android学习(6)---前台服务notification.setLatestEventInfo 废弃之后的替代写法