summaryrefslogtreecommitdiffstats
path: root/core/java/android/app/Notification.java
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2012-01-10 15:24:26 -0800
committerDianne Hackborn <hackbod@google.com>2012-01-12 15:48:20 -0800
commit6ceca588a268ed8fef4b32df278ca7567e608510 (patch)
treeae3d0bf0aff3d4fb0b175a8ed0443b8f72b8b410 /core/java/android/app/Notification.java
parentd3be0a76e46584357dbb77fcd200128d0d7dc9a8 (diff)
downloadframeworks_base-6ceca588a268ed8fef4b32df278ca7567e608510.zip
frameworks_base-6ceca588a268ed8fef4b32df278ca7567e608510.tar.gz
frameworks_base-6ceca588a268ed8fef4b32df278ca7567e608510.tar.bz2
Update notification documentation to follow current guidelines.
The documentation is now consistent with the current UI guidelines for handling notifications, and includes complete sample code showing the correct way to do this. Change-Id: I68f0afc62c2af164c3205535e62093679e2a256a
Diffstat (limited to 'core/java/android/app/Notification.java')
-rw-r--r--core/java/android/app/Notification.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/core/java/android/app/Notification.java b/core/java/android/app/Notification.java
index f5add25..d569e20 100644
--- a/core/java/android/app/Notification.java
+++ b/core/java/android/app/Notification.java
@@ -113,7 +113,10 @@ public class Notification implements Parcelable
* {@link android.content.Intent#FLAG_ACTIVITY_NEW_TASK} flag, which requires
* that you take care of task management as described in the
* <a href="{@docRoot}guide/topics/fundamentals/tasks-and-back-stack.html">Tasks and Back
- * Stack</a> document.
+ * Stack</a> document. In particular, make sure to read the notification section
+ * <a href="{@docRoot}guide/topics/ui/notifiers/notifications.html#HandlingNotifications">Handling
+ * Notifications</a> for the correct ways to launch an application from a
+ * notification.
*/
public PendingIntent contentIntent;
@@ -765,7 +768,9 @@ public class Notification implements Parcelable
* Supply a {@link PendingIntent} to send when the notification is clicked.
* If you do not supply an intent, you can now add PendingIntents to individual
* views to be launched when clicked by calling {@link RemoteViews#setOnClickPendingIntent
- * RemoteViews.setOnClickPendingIntent(int,PendingIntent)}.
+ * RemoteViews.setOnClickPendingIntent(int,PendingIntent)}. Be sure to
+ * read {@link Notification#contentIntent Notification.contentIntent} for
+ * how to correctly use this.
*/
public Builder setContentIntent(PendingIntent intent) {
mContentIntent = intent;