开发者

Type R.drawable.stat_notify_calendar cannot be resolved

开发者 https://www.devze.com 2022-12-23 13:43 出处:网络
I\'m trying to make a notification in Android. But i get the error in the title by using: Notification notif = new Notification(R.drawable.stat_notify_calendar, tickerText,

I'm trying to make a notification in Android. But i get the error in the title by using:

   Notification notif = new Notification(R.drawable.stat_notify_calendar, tickerText,
           System.currentTimeMillis(开发者_如何转开发));

Do i need to define something before i try to draw it?


For that to work, you need an image in res/drawable/ (or a related resource set) named stat_notify_calendar.* where the * could be png, jpg, etc.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号