Doc update: notification class bug fix

Bug # 8289218

Change-Id: I8bc10aa4a227f8125824d69a6202c383b7de256f
This commit is contained in:
kmccormick
2013-03-20 15:44:33 -07:00
parent a15afd2bc4
commit 6dc8d6ff82

View File

@@ -149,12 +149,14 @@ specifications.</li>
<p>For example:</p>
<pre>
NotificationCompat.Builder mBuilder;
...
// Sets an ID for the notification
int mNotificationId = 001;
// Gets an instance of the NotificationManager service
NotificationManager mNotifyMgr =
(NotificationManager) getSystemService(NOTIFICATION_SERVICE);
// Builds the notification and issues it.
mNotifyMgr.notify(mNotificationId, builder.build());
mNotifyMgr.notify(mNotificationId, mBuilder.build());
</pre>