diff options
author | Dianne Hackborn <hackbod@google.com> | 2012-01-13 18:25:31 -0800 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2012-01-13 18:25:31 -0800 |
commit | dda932005b8a1dc202bc9aba019c7e9260341bb9 (patch) | |
tree | 6f2b3533def3bd804a48119d87521b94b7ab644f /core/java/android/app/Notification.java | |
parent | 72bc790705f4ed9722a6a838205c69ceba6209d8 (diff) | |
parent | d4d68fe20259e2d6aaae8bc4a38b360aa0b57081 (diff) | |
download | frameworks_base-dda932005b8a1dc202bc9aba019c7e9260341bb9.zip frameworks_base-dda932005b8a1dc202bc9aba019c7e9260341bb9.tar.gz frameworks_base-dda932005b8a1dc202bc9aba019c7e9260341bb9.tar.bz2 |
am d4d68fe2: am cc7bd5ab: Merge "Update notification documentation to follow current guidelines." into ics-mr1
* commit 'd4d68fe20259e2d6aaae8bc4a38b360aa0b57081':
Update notification documentation to follow current guidelines.
Diffstat (limited to 'core/java/android/app/Notification.java')
-rw-r--r-- | core/java/android/app/Notification.java | 9 |
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; |