2010-03-22 126 views
0

我试图在Android中发出通知。但我通过使用标题错误:类型R.drawable.stat_notify_calendar无法解析

Notification notif = new Notification(R.drawable.stat_notify_calendar, tickerText, 
      System.currentTimeMillis()); 

在我试图绘制它之前,我需要定义一些东西吗?

回答

2

对于工作,你需要在res/drawable/名为stat_notify_calendar.*图像(或相关资源集),其中*可能是pngjpg

+0

太棒了!非常感谢你。 – Sjoerd 2010-03-22 12:29:37