当前位置: 动力学知识库 > 问答 > 编程问答 >

android - Type R.drawable.stat_notify_calendar cannot be resolved

问题描述:

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.

分享给朋友:
您可能感兴趣的文章:
随机阅读: