Loading core/java/android/app/Notification.java +4 −2 Original line number Diff line number Diff line Loading @@ -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 Loading Loading
core/java/android/app/Notification.java +4 −2 Original line number Diff line number Diff line Loading @@ -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 Loading