am a75e413a: am 42d5732d: am 728c4a7e: am 90ea5cc3: Merge "Doc update: notification class bug fix" into jb-mr1.1-docs

* commit 'a75e413a3a93d6bdafdff142400d7ded2b647ae4':
  Doc update: notification class bug fix
This commit is contained in:
kmccormick
2013-03-20 17:02:30 -07:00
committed by Android Git Automerger

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>