From c6acd688c0cbd00f9407d676a51ee4994db51694 Mon Sep 17 00:00:00 2001 From: Dianne Hackborn Date: Thu, 1 Sep 2011 19:58:00 -0700 Subject: [PATCH] Fix issue #4554429: API REVIEW: deprecate Live Folders Change-Id: Iddb5a55866469d24a20cc61a28c4dbe146bfd0bf --- api/current.txt | 2 +- core/java/android/provider/LiveFolders.java | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/api/current.txt b/api/current.txt index 21ee1f11b4934..084f16a0cdbb0 100644 --- a/api/current.txt +++ b/api/current.txt @@ -16774,7 +16774,7 @@ package android.provider { field public static final android.net.Uri CONTENT_URI; } - public final class LiveFolders implements android.provider.BaseColumns { + public final deprecated class LiveFolders implements android.provider.BaseColumns { field public static final java.lang.String ACTION_CREATE_LIVE_FOLDER = "android.intent.action.CREATE_LIVE_FOLDER"; field public static final java.lang.String DESCRIPTION = "description"; field public static final int DISPLAY_MODE_GRID = 1; // 0x1 diff --git a/core/java/android/provider/LiveFolders.java b/core/java/android/provider/LiveFolders.java index 7856bab016cbd..cf8ad46a832f2 100644 --- a/core/java/android/provider/LiveFolders.java +++ b/core/java/android/provider/LiveFolders.java @@ -162,7 +162,17 @@ import android.annotation.SdkConstant; * * * + * + * @deprecated Live folders are no longer supported by Android. These have been + * replaced by the new + * AppWidget Collection + * APIs introduced in {@link android.os.Build.VERSION_CODES#HONEYCOMB}. These provide + * all of the features of live folders plus many more. The use of live folders is greatly + * discouraged because of security issues they introduce -- publishing a live folder requires + * making all data show for the live folder available to all applications with no + * permissions protecting it. */ +@Deprecated public final class LiveFolders implements BaseColumns { /** *

Content provider column.