diff options
author | Dianne Hackborn <hackbod@google.com> | 2010-10-05 18:07:54 -0700 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2010-10-05 18:07:54 -0700 |
commit | 3c4c2b7e6f0674068d13b42d4dcf0fd009df0c49 (patch) | |
tree | 9fb61197b62350b3c5899fd7357dc8717b0c5425 /core/java/android/app/Activity.java | |
parent | 5a5fff7101b45bc28f59e72ea4c3e57632ff9ceb (diff) | |
download | frameworks_base-3c4c2b7e6f0674068d13b42d4dcf0fd009df0c49.zip frameworks_base-3c4c2b7e6f0674068d13b42d4dcf0fd009df0c49.tar.gz frameworks_base-3c4c2b7e6f0674068d13b42d4dcf0fd009df0c49.tar.bz2 |
Fix issue #3001368: API REVIEW: android.app.Activity
Bye bye, lots of junk.
Change-Id: Idd72fc525851277362b2a1ff3bb0f7865fe655fd
Diffstat (limited to 'core/java/android/app/Activity.java')
-rw-r--r-- | core/java/android/app/Activity.java | 28 |
1 files changed, 2 insertions, 26 deletions
diff --git a/core/java/android/app/Activity.java b/core/java/android/app/Activity.java index 72bf825..2c4babb 100644 --- a/core/java/android/app/Activity.java +++ b/core/java/android/app/Activity.java @@ -1631,35 +1631,11 @@ public class Activity extends ContextThemeWrapper } /** - * @deprecated This functionality will be removed in the future; please do - * not use. - * - * Control whether this activity is required to be persistent. By default - * activities are not persistent; setting this to true will prevent the - * system from stopping this activity or its process when running low on - * resources. - * - * <p><em>You should avoid using this method</em>, it has severe negative - * consequences on how well the system can manage its resources. A better - * approach is to implement an application service that you control with - * {@link Context#startService} and {@link Context#stopService}. - * - * @param isPersistent Control whether the current activity must be - * persistent, true if so, false for the normal - * behavior. + * @deprecated As of {@link android.os.Build.VERSION_CODES#GINGERBREAD} + * this is a no-op. */ @Deprecated public void setPersistent(boolean isPersistent) { - if (mParent == null) { - try { - ActivityManagerNative.getDefault() - .setPersistent(mToken, isPersistent); - } catch (RemoteException e) { - // Empty - } - } else { - throw new RuntimeException("setPersistent() not yet supported for embedded activities"); - } } /** |