From 946280d6ce5f33ee3a4d046a997203345d8a29cb Mon Sep 17 00:00:00 2001 From: Louis Pullen-Freilich Date: Thu, 15 Nov 2018 12:51:50 +0000 Subject: [PATCH] Removes framework Preference demos The framework Preference APIs are being deprecated, so removing the samples will help avoid confusion. Bug: b/119602280 Test: n/a Change-Id: Ib3a2c38b8fbb0f1afc9ef6a35963def46ee931f7 --- samples/ApiDemos/AndroidManifest.xml | 78 -------- samples/ApiDemos/README.txt | 1 - samples/ApiDemos/_index.html | 3 - .../layout/preference_widget_mypreference.xml | 25 --- samples/ApiDemos/res/values/arrays.xml | 14 -- samples/ApiDemos/res/values/attrs.xml | 6 - samples/ApiDemos/res/values/strings.xml | 72 -------- .../ApiDemos/res/xml/advanced_preferences.xml | 38 ---- samples/ApiDemos/res/xml/default_values.xml | 44 ----- .../res/xml/fragmented_preferences.xml | 97 ---------- .../res/xml/fragmented_preferences_inner.xml | 26 --- .../res/xml/preference_dependencies.xml | 35 ---- .../ApiDemos/res/xml/preference_headers.xml | 44 ----- samples/ApiDemos/res/xml/preference_switch | 46 ----- samples/ApiDemos/res/xml/preferences.xml | 101 ----------- .../apis/preference/AdvancedPreferences.java | 94 ---------- .../apis/preference/DefaultValues.java | 61 ------- .../apis/preference/FragmentPreferences.java | 52 ------ .../apis/preference/LaunchingPreferences.java | 100 ---------- .../android/apis/preference/MyPreference.java | 171 ------------------ .../preference/PreferenceDependencies.java | 33 ---- .../preference/PreferenceWithHeaders.java | 108 ----------- .../apis/preference/PreferencesFromCode.java | 152 ---------------- .../apis/preference/PreferencesFromXml.java | 34 ---- .../apis/preference/SwitchPreference.java | 38 ---- 25 files changed, 1473 deletions(-) delete mode 100644 samples/ApiDemos/res/layout/preference_widget_mypreference.xml delete mode 100644 samples/ApiDemos/res/xml/advanced_preferences.xml delete mode 100644 samples/ApiDemos/res/xml/default_values.xml delete mode 100644 samples/ApiDemos/res/xml/fragmented_preferences.xml delete mode 100644 samples/ApiDemos/res/xml/fragmented_preferences_inner.xml delete mode 100644 samples/ApiDemos/res/xml/preference_dependencies.xml delete mode 100644 samples/ApiDemos/res/xml/preference_headers.xml delete mode 100644 samples/ApiDemos/res/xml/preference_switch delete mode 100644 samples/ApiDemos/res/xml/preferences.xml delete mode 100644 samples/ApiDemos/src/com/example/android/apis/preference/AdvancedPreferences.java delete mode 100644 samples/ApiDemos/src/com/example/android/apis/preference/DefaultValues.java delete mode 100644 samples/ApiDemos/src/com/example/android/apis/preference/FragmentPreferences.java delete mode 100644 samples/ApiDemos/src/com/example/android/apis/preference/LaunchingPreferences.java delete mode 100644 samples/ApiDemos/src/com/example/android/apis/preference/MyPreference.java delete mode 100644 samples/ApiDemos/src/com/example/android/apis/preference/PreferenceDependencies.java delete mode 100644 samples/ApiDemos/src/com/example/android/apis/preference/PreferenceWithHeaders.java delete mode 100644 samples/ApiDemos/src/com/example/android/apis/preference/PreferencesFromCode.java delete mode 100644 samples/ApiDemos/src/com/example/android/apis/preference/PreferencesFromXml.java delete mode 100644 samples/ApiDemos/src/com/example/android/apis/preference/SwitchPreference.java diff --git a/samples/ApiDemos/AndroidManifest.xml b/samples/ApiDemos/AndroidManifest.xml index afda28616..2d2d785dd 100644 --- a/samples/ApiDemos/AndroidManifest.xml +++ b/samples/ApiDemos/AndroidManifest.xml @@ -1156,84 +1156,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/samples/ApiDemos/README.txt b/samples/ApiDemos/README.txt index 30a567273..8bf58c7ff 100644 --- a/samples/ApiDemos/README.txt +++ b/samples/ApiDemos/README.txt @@ -7,7 +7,6 @@ that illustrate the use of various Android APIs. It includes samples of: - Menus - Search - Persistent application state - - Preferences - Background Services - App Widgets - Voice Recognition diff --git a/samples/ApiDemos/_index.html b/samples/ApiDemos/_index.html index 421eca622..eb6c551fd 100644 --- a/samples/ApiDemos/_index.html +++ b/samples/ApiDemos/_index.html @@ -9,7 +9,6 @@ that illustrate the use of various Android APIs. It includes samples of:
  • Menus
  • Search
  • Persistent application state
  • -
  • Preferences
  • Background Services
  • App Widgets
  • Voice Recognition
  • @@ -20,8 +19,6 @@ that illustrate the use of various Android APIs. It includes samples of:

    Update: The following are some of the new demos for Android 4.0: