Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a75e413a authored by kmccormick's avatar kmccormick Committed by Android Git Automerger
Browse files

am 42d5732d: am 728c4a7e: am 90ea5cc3: Merge "Doc update: notification class...

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

* commit '42d5732d':
  Doc update: notification class bug fix
parents ad070e0c 42d5732d
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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>