summaryrefslogtreecommitdiffstats
path: root/docs/html/training/notify-user
diff options
context:
space:
mode:
authorkmccormick <kmccormick@google.com>2013-03-20 15:44:33 -0700
committerkmccormick <kmccormick@google.com>2013-03-20 15:45:01 -0700
commit6dc8d6ff823028a4b3b228e8a3bcac3481335eda (patch)
tree506dcae8674a9fdb69d8ae3e49edf53b172cea72 /docs/html/training/notify-user
parenta15afd2bc4b103146497b521c09c73722a8e3725 (diff)
downloadframeworks_base-6dc8d6ff823028a4b3b228e8a3bcac3481335eda.zip
frameworks_base-6dc8d6ff823028a4b3b228e8a3bcac3481335eda.tar.gz
frameworks_base-6dc8d6ff823028a4b3b228e8a3bcac3481335eda.tar.bz2
Doc update: notification class bug fix
Bug # 8289218 Change-Id: I8bc10aa4a227f8125824d69a6202c383b7de256f
Diffstat (limited to 'docs/html/training/notify-user')
-rw-r--r--docs/html/training/notify-user/build-notification.jd4
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/html/training/notify-user/build-notification.jd b/docs/html/training/notify-user/build-notification.jd
index ba66028..80f2cd5 100644
--- a/docs/html/training/notify-user/build-notification.jd
+++ b/docs/html/training/notify-user/build-notification.jd
@@ -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>