Loading api/11.xml +0 −26 Original line number Diff line number Diff line Loading @@ -17275,19 +17275,6 @@ <parameter name="newIntent" type="android.content.Intent"> </parameter> </method> <method name="setPersistent" return="void" abstract="false" native="false" synchronized="false" static="false" final="false" deprecated="deprecated" visibility="public" > <parameter name="isPersistent" type="boolean"> </parameter> </method> <method name="setProgress" return="void" abstract="false" Loading Loading @@ -26050,19 +26037,6 @@ <parameter name="intent" type="android.content.Intent"> </parameter> </method> <method name="setForeground" return="void" abstract="false" native="false" synchronized="false" static="false" final="true" deprecated="deprecated" visibility="public" > <parameter name="isForeground" type="boolean"> </parameter> </method> <method name="startForeground" return="void" abstract="false" api/current.xml +0 −26 Original line number Diff line number Diff line Loading @@ -23636,19 +23636,6 @@ <parameter name="newIntent" type="android.content.Intent"> </parameter> </method> <method name="setPersistent" return="void" abstract="false" native="false" synchronized="false" static="false" final="false" deprecated="deprecated" visibility="public" > <parameter name="isPersistent" type="boolean"> </parameter> </method> <method name="setProgress" return="void" abstract="false" Loading Loading @@ -35347,19 +35334,6 @@ <parameter name="intent" type="android.content.Intent"> </parameter> </method> <method name="setForeground" return="void" abstract="false" native="false" synchronized="false" static="false" final="true" deprecated="deprecated" visibility="public" > <parameter name="isForeground" type="boolean"> </parameter> </method> <method name="startForeground" return="void" abstract="false" core/java/android/app/Activity.java +1 −0 Original line number Diff line number Diff line Loading @@ -1730,6 +1730,7 @@ public class Activity extends ContextThemeWrapper /** * @deprecated As of {@link android.os.Build.VERSION_CODES#GINGERBREAD} * this is a no-op. * @hide */ @Deprecated public void setPersistent(boolean isPersistent) { Loading core/java/android/app/Service.java +3 −1 Original line number Diff line number Diff line Loading @@ -568,6 +568,8 @@ public abstract class Service extends ContextWrapper implements ComponentCallbac * be killed when they would like to avoid it), vs allowing the performance * of the entire system to be decreased, this method was deemed less * important. * * @hide */ @Deprecated public final void setForeground(boolean isForeground) { Loading @@ -585,7 +587,7 @@ public abstract class Service extends ContextWrapper implements ComponentCallbac * would notice if their music stopped playing. * * <p>If you need your application to run on platform versions prior to API * level 5, you can use the following model to call the the older {@link #setForeground} * level 5, you can use the following model to call the the older setForeground() * or this modern method as appropriate: * * {@sample development/samples/ApiDemos/src/com/example/android/apis/app/ForegroundService.java Loading docs/html/sdk/android-2.3.jd +1 −1 Original line number Diff line number Diff line Loading @@ -469,7 +469,7 @@ in {@link android.app.ActivityManager.RunningAppProcessInfo}. The value indicates that a specific process is running something that is considered to be actively perceptible to the user. An example would be an application performing background music playback.</li> <li>The {@link android.app.Activity#setPersistent(boolean)} method to mark an <li>The Activity.setPersistent(boolean) method to mark an Activity as persistent is now deprecated and the implementation is a no-op.</li> </ul> </li> Loading Loading
api/11.xml +0 −26 Original line number Diff line number Diff line Loading @@ -17275,19 +17275,6 @@ <parameter name="newIntent" type="android.content.Intent"> </parameter> </method> <method name="setPersistent" return="void" abstract="false" native="false" synchronized="false" static="false" final="false" deprecated="deprecated" visibility="public" > <parameter name="isPersistent" type="boolean"> </parameter> </method> <method name="setProgress" return="void" abstract="false" Loading Loading @@ -26050,19 +26037,6 @@ <parameter name="intent" type="android.content.Intent"> </parameter> </method> <method name="setForeground" return="void" abstract="false" native="false" synchronized="false" static="false" final="true" deprecated="deprecated" visibility="public" > <parameter name="isForeground" type="boolean"> </parameter> </method> <method name="startForeground" return="void" abstract="false"
api/current.xml +0 −26 Original line number Diff line number Diff line Loading @@ -23636,19 +23636,6 @@ <parameter name="newIntent" type="android.content.Intent"> </parameter> </method> <method name="setPersistent" return="void" abstract="false" native="false" synchronized="false" static="false" final="false" deprecated="deprecated" visibility="public" > <parameter name="isPersistent" type="boolean"> </parameter> </method> <method name="setProgress" return="void" abstract="false" Loading Loading @@ -35347,19 +35334,6 @@ <parameter name="intent" type="android.content.Intent"> </parameter> </method> <method name="setForeground" return="void" abstract="false" native="false" synchronized="false" static="false" final="true" deprecated="deprecated" visibility="public" > <parameter name="isForeground" type="boolean"> </parameter> </method> <method name="startForeground" return="void" abstract="false"
core/java/android/app/Activity.java +1 −0 Original line number Diff line number Diff line Loading @@ -1730,6 +1730,7 @@ public class Activity extends ContextThemeWrapper /** * @deprecated As of {@link android.os.Build.VERSION_CODES#GINGERBREAD} * this is a no-op. * @hide */ @Deprecated public void setPersistent(boolean isPersistent) { Loading
core/java/android/app/Service.java +3 −1 Original line number Diff line number Diff line Loading @@ -568,6 +568,8 @@ public abstract class Service extends ContextWrapper implements ComponentCallbac * be killed when they would like to avoid it), vs allowing the performance * of the entire system to be decreased, this method was deemed less * important. * * @hide */ @Deprecated public final void setForeground(boolean isForeground) { Loading @@ -585,7 +587,7 @@ public abstract class Service extends ContextWrapper implements ComponentCallbac * would notice if their music stopped playing. * * <p>If you need your application to run on platform versions prior to API * level 5, you can use the following model to call the the older {@link #setForeground} * level 5, you can use the following model to call the the older setForeground() * or this modern method as appropriate: * * {@sample development/samples/ApiDemos/src/com/example/android/apis/app/ForegroundService.java Loading
docs/html/sdk/android-2.3.jd +1 −1 Original line number Diff line number Diff line Loading @@ -469,7 +469,7 @@ in {@link android.app.ActivityManager.RunningAppProcessInfo}. The value indicates that a specific process is running something that is considered to be actively perceptible to the user. An example would be an application performing background music playback.</li> <li>The {@link android.app.Activity#setPersistent(boolean)} method to mark an <li>The Activity.setPersistent(boolean) method to mark an Activity as persistent is now deprecated and the implementation is a no-op.</li> </ul> </li> Loading