星空网 > 软件开发 > 操作系统

关于Android中new Notification

目前 Android 已经不推荐使用下列方式创建 Notification实例:

1 Notification notification = new Notification(R.drawable.ic_launcher,"This is ticker text",System.currentTimeMillis());

最好采用下列方式:

        Notification notification = new Notification.Builder(this)          .setContentTitle("This is title")          .setContentText("This is content")          .setSmallIcon(R.drawable.ic_launcher)            .setTicker("This is ticker")            .setContentIntent(pi)          .build();  

 




原标题:关于Android中new Notification

关键词:Android

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

海外营销,如何让你的品牌脱颖而出?:https://www.ikjzd.com/articles/136954
2021年如何可以获得更多潜在用户?:https://www.ikjzd.com/articles/136955
海外营销,如何增加网站流量?:https://www.ikjzd.com/articles/136956
Lazada直通车 如何获得更大化提高点击量和销量?:https://www.ikjzd.com/articles/136957
亚马逊全球开店中国发布2021年战略重点:https://www.ikjzd.com/articles/136958
宠物电商Chewy第三季度销售额17.8亿美元 同比增长45%:https://www.ikjzd.com/articles/136959
出境旅游预订须知:https://www.vstour.cn/a/365175.html
九寨沟景区地图(详细指南和攻略):https://www.vstour.cn/a/365176.html
相关文章
我的浏览记录
最新相关资讯
海外公司注册 | 跨境电商服务平台 | 深圳旅行社 | 东南亚物流