setLatestEventInfo(),Builder.getNotification()过时,Android提供的解决方案
来源:互联网 发布:怎样举报网络非法赌博 编辑:程序博客网 时间:2024/06/06 17:39
关于setLatestEventInfo(),Builder.getNotification()过时,Android developer提供的原文解决方案:Notification(int icon, CharSequence tickerText, long when) 原出处:http://onedaysfriend.blog.163.com/blog/static/1026418122014330101814643/
This constructor was deprecated in API level 11. Use
意思是该构造方法在API 11就开始不赞成使用,用Notification.Builder
instead.Notification.Builder进行替代。
getNotification()
This method was deprecated in API level 16. Use
build()
instead.意思是该构造方法在API 16就开始不赞成使用,用进行替代。
build()
至此,我们得到了处理方案,
下面是
Android developer给出的一段demo:Example:
Notification noti = new Notification.Builder(mContext) .setContentTitle("New mail from " + sender.toString()) .setContentText(subject) .setSmallIcon(R.drawable.new_mail) .setLargeIcon(aBitmap) .build();
0 0
- setLatestEventInfo(),Builder.getNotification()过时,Android提供的解决方案
- setLatestEventInfo(),Builder.getNotification()过时,Android提供的解决方案
- setLatestEventInfo(),Builder.getNotification()过时,Android提供的解决方案
- 关于setLatestEventInfo(),Builder.getNotification()过时
- Notification中setLatestEventInfo(),Builder.getNotification()过时
- Builder.getNotification()过时的解决办法
- Android中关于setLatestEventInfo()过时以及构建Notification的解决方法
- Android中关于setLatestEventInfo()过时以及构建Notification的解决方法
- Android中关于setLatestEventInfo()过时以及构建Notification的解决方法
- Android通知栏,setLatestEventInfo方法过时问题
- notification.setLatestEventInfo过时
- notification.builder代替notification的setLatestEventInfo()方法
- Android Notification的setLatestEventInfo()@deprecate
- Android Notification.setLatestEventInfo弃用和Notification.Builder用法
- Android Notification.setLatestEventInfo弃用和Notification.Builder用法
- Android Notification.setLatestEventInfo弃用和Notification.Builder用法
- android SDK23 Notification通知setLatestEventInfo方法失效 和httpclient失效的解决方案
- Android 23 Connot resolve method updateNotification.setLatestEventInfo()解决方案
- 用Python实现一个1加到n求和功能的函数
- Vmware Tools安装出错的解决方法
- [64]Minimum Path Sum
- jaxp解析xml
- oc字符串 和 注意地方
- setLatestEventInfo(),Builder.getNotification()过时,Android提供的解决方案
- 面对电信运营商HTTP劫持如何是好,投诉太折腾,不如路由器直接屏蔽广告源
- 《C++ primer》英文第五版阅读笔记(六)——类型处理
- C++的精髓——虚函数
- php面向对象(一)
- 在github上创建新分支
- 设计模式之单例模式
- html和css设计开发框架
- php面向对象(二)