我的计划是从一个服务调用此代码来显示通知:通知上没有显示2.3.6
NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(this).setSmallIcon(icon)
.setContentTitle("BU").setOngoing(true).setContentText("BU is the biggest!!!");
mNM.notify(mNotificationId, mBuilder.build());
它正在开发的Galaxy S-III其中有一个版本4.1或更高版本,但它不是在android v2.3.6上也没有给出错误。
我已经阅读了API,但我可能会错过一些东西。有什么问题,我该如何解决?
在此先感谢...
你的代码将工作,因为你提供了一个ContentIntent,并根据这个http://stackoverflow.com/questions/15011638/android-notification-not-working-on-2-3-6-samsung-galaxy-y “GingerBread需要一个ContentIntent”,我的代码没有。 – guness 2013-03-04 14:20:10