diff options
author | Griff Hazen <griff@google.com> | 2014-06-17 00:38:38 -0700 |
---|---|---|
committer | Griff Hazen <griff@google.com> | 2014-06-17 00:38:38 -0700 |
commit | 831ca9d3bc73e37f555f6c07babde270f83044fe (patch) | |
tree | 015010eed09f3a7d46c9d8c4bd5bd476958304b6 /core | |
parent | b17420b81ebe7e1235a45ad3e7ce8c1850c129f2 (diff) | |
download | frameworks_base-831ca9d3bc73e37f555f6c07babde270f83044fe.zip frameworks_base-831ca9d3bc73e37f555f6c07babde270f83044fe.tar.gz frameworks_base-831ca9d3bc73e37f555f6c07babde270f83044fe.tar.bz2 |
Document best practices for display intent activities.
Bug: 15412926
Change-Id: I1c3082dfde85cd03ffc97be6383a0608f925edcf
Diffstat (limited to 'core')
-rw-r--r-- | core/java/android/app/Notification.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/core/java/android/app/Notification.java b/core/java/android/app/Notification.java index 32284e8..2ea679d 100644 --- a/core/java/android/app/Notification.java +++ b/core/java/android/app/Notification.java @@ -3102,14 +3102,16 @@ public class Notification implements Parcelable * .build();</pre> * * <p>The activity to launch needs to allow embedding, must be exported, and - * should have an empty task affinity. + * should have an empty task affinity. It is also recommended to use the device + * default light theme. * * <p>Example AndroidManifest.xml entry: * <pre class="prettyprint"> * <activity android:name="com.example.MyDisplayActivity" * android:exported="true" * android:allowEmbedded="true" - * android:taskAffinity="" /></pre> + * android:taskAffinity="" + * android:theme="@android:style/Theme.DeviceDefault.Light" /></pre> * * @param intent the {@link PendingIntent} for an activity * @return this object for method chaining |