亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

Android中new Notification創(chuàng)建實(shí)例的最佳方法

 更新時(shí)間:2016年08月31日 09:54:33   作者:itoysk  
這篇文章主要介紹了Android中new Notification創(chuàng)建實(shí)例的最佳方法,非常不錯(cuò),具有參考借鑒價(jià)值,需要的朋友可以參考下

目前 Android 已經(jīng)不推薦使用下列方式創(chuàng)建 Notification實(shí)例:

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創(chuàng)建實(shí)例的最佳方法,希望對(duì)大家有所幫助,如果大家有任何疑問(wèn)請(qǐng)給我留言,小編會(huì)及時(shí)回復(fù)大家的。在此也非常感謝大家對(duì)腳本之家網(wǎng)站的支持!

相關(guān)文章

最新評(píng)論