* commit '728c4a7e4c19f134b82dbda2c8b1457a890e3765': Doc update: notification class bug fix
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user