Loading docs/html/training/notify-user/build-notification.jd +3 −1 Original line number Diff line number Diff line Loading @@ -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> Loading
docs/html/training/notify-user/build-notification.jd +3 −1 Original line number Diff line number Diff line Loading @@ -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>