diff --git a/build/sdk.atree b/build/sdk.atree
index 410a43c42..7b14b28f6 100644
--- a/build/sdk.atree
+++ b/build/sdk.atree
@@ -252,6 +252,17 @@ frameworks/support/v7/appcompat/res
frameworks/support/v7/appcompat/src/.readme extras/android/support/v7/appcompat/src/.readme
${OUT_DIR}/target/common/obj/PACKAGING/android-support-v7-appcompat_intermediates/android-support-v7-appcompat.jar extras/android/support/appcompat/libs/android-support-v7-appcompat.jar
+frameworks/support/v7/mediarouter/README.txt extras/android/support/v7/mediarouter/README.txt
+frameworks/support/v7/mediarouter/.project extras/android/support/v7/mediarouter/.project
+frameworks/support/v7/mediarouter/.classpath extras/android/support/v7/mediarouter/.classpath
+frameworks/support/v7/mediarouter/AndroidManifest.xml extras/android/support/v7/mediarouter/AndroidManifest.xml
+frameworks/support/v7/mediarouter/project.properties extras/android/support/v7/mediarouter/project.properties
+frameworks/support/v7/mediarouter/res extras/android/support/v7/mediarouter/res
+frameworks/support/v7/mediarouter/src/.readme extras/android/support/v7/mediarouter/src/.readme
+${OUT_DIR}/target/common/obj/PACKAGING/android-support-v7-mediarouter_intermediates/android-support-v7-mediarouter.jar extras/android/support/v7/mediarouter/libs/android-support-v7-mediarouter.jar
+
+development/samples/Support7Demos extras/android/support/samples/Support7Demos
+
##############################################################################
# Tests Component
##############################################################################
diff --git a/samples/Support4Demos/AndroidManifest.xml b/samples/Support4Demos/AndroidManifest.xml
index 023034863..99bacd482 100644
--- a/samples/Support4Demos/AndroidManifest.xml
+++ b/samples/Support4Demos/AndroidManifest.xml
@@ -309,22 +309,5 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/samples/Support4Demos/res/values/strings.xml b/samples/Support4Demos/res/values/strings.xml
index 3a58835b6..977db2f64 100644
--- a/samples/Support4Demos/res/values/strings.xml
+++ b/samples/Support4Demos/res/values/strings.xml
@@ -32,7 +32,9 @@
VioletPress the button to get an activity result, which will be displayed here:Get Result
-
+
+
+
Fragment/Alert DialogFragment/Arguments
@@ -136,19 +138,7 @@
FileProvider example
-
-
- Media/MediaRouter
- This activity demonstrates how to
- use MediaRouter from the support library. Select a route from the action bar.
- Play on...
-
- Play
- Show Statistics
-
- Media Route Provider Service Support Library Sample
- Fixed Volume Remote Playback Route
- Variable Volume Remote Playback Route
+
Without BidiFormatter:With BidiFormatter:
diff --git a/samples/Support7Demos/Android.mk b/samples/Support7Demos/Android.mk
new file mode 100644
index 000000000..0e43e3d44
--- /dev/null
+++ b/samples/Support7Demos/Android.mk
@@ -0,0 +1,38 @@
+# Copyright (C) 2013 The Android Open Source Project
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+LOCAL_PATH:= $(call my-dir)
+
+# Build the samples.
+# We need to add some special AAPT flags to generate R classes
+# for resources that are included from the libraries.
+include $(CLEAR_VARS)
+LOCAL_PACKAGE_NAME := Support7Demos
+LOCAL_MODULE_TAGS := samples tests
+LOCAL_SDK_VERSION := current
+LOCAL_SRC_FILES := $(call all-java-files-under, src)
+LOCAL_STATIC_JAVA_LIBRARIES := \
+ android-support-v4 \
+ android-support-v7-appcompat \
+ android-support-v7-gridlayout \
+ android-support-v7-mediarouter
+LOCAL_RESOURCE_DIR = \
+ $(LOCAL_PATH)/res \
+ frameworks/support/v7/appcompat/res \
+ frameworks/support/v7/gridlayout/res \
+ frameworks/support/v7/mediarouter/res
+LOCAL_AAPT_FLAGS := \
+ --auto-add-overlay \
+ --extra-packages android.support.v7.appcompat:android.support.v7.gridlayout:android.support.v7.mediarouter
+include $(BUILD_PACKAGE)
diff --git a/samples/Support7Demos/AndroidManifest.xml b/samples/Support7Demos/AndroidManifest.xml
new file mode 100644
index 000000000..6d93b62a0
--- /dev/null
+++ b/samples/Support7Demos/AndroidManifest.xml
@@ -0,0 +1,64 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/samples/Support7Demos/_index.html b/samples/Support7Demos/_index.html
new file mode 100644
index 000000000..0c017ab6d
--- /dev/null
+++ b/samples/Support7Demos/_index.html
@@ -0,0 +1,30 @@
+
The Support v7 Demos application contains a variety of small sample
+code showing how to use key features of the Android API 7+ Support Library.
+This library contains code that you can
+build in to your application to access new features and common
+utilities while being able to run down to version 2.1 (API 7)
+of the platform.
+
+
+
diff --git a/samples/Support4Demos/res/drawable-hdpi/media_route_icon.png b/samples/Support7Demos/res/drawable-hdpi/app_sample_code.png
similarity index 100%
rename from samples/Support4Demos/res/drawable-hdpi/media_route_icon.png
rename to samples/Support7Demos/res/drawable-hdpi/app_sample_code.png
diff --git a/samples/Support7Demos/res/drawable-hdpi/media_route_icon.png b/samples/Support7Demos/res/drawable-hdpi/media_route_icon.png
new file mode 100755
index 000000000..66a198496
Binary files /dev/null and b/samples/Support7Demos/res/drawable-hdpi/media_route_icon.png differ
diff --git a/samples/Support4Demos/res/drawable-mdpi/media_route_icon.png b/samples/Support7Demos/res/drawable-mdpi/app_sample_code.png
similarity index 100%
rename from samples/Support4Demos/res/drawable-mdpi/media_route_icon.png
rename to samples/Support7Demos/res/drawable-mdpi/app_sample_code.png
diff --git a/samples/Support7Demos/res/drawable-mdpi/media_route_icon.png b/samples/Support7Demos/res/drawable-mdpi/media_route_icon.png
new file mode 100644
index 000000000..5ae7701a8
Binary files /dev/null and b/samples/Support7Demos/res/drawable-mdpi/media_route_icon.png differ
diff --git a/samples/Support4Demos/res/layout/sample_media_router.xml b/samples/Support7Demos/res/layout/sample_media_router.xml
similarity index 100%
rename from samples/Support4Demos/res/layout/sample_media_router.xml
rename to samples/Support7Demos/res/layout/sample_media_router.xml
diff --git a/samples/Support4Demos/res/menu/sample_media_router_menu.xml b/samples/Support7Demos/res/menu/sample_media_router_menu.xml
similarity index 100%
rename from samples/Support4Demos/res/menu/sample_media_router_menu.xml
rename to samples/Support7Demos/res/menu/sample_media_router_menu.xml
diff --git a/samples/Support4Demos/res/values/arrays.xml b/samples/Support7Demos/res/values/arrays.xml
similarity index 100%
rename from samples/Support4Demos/res/values/arrays.xml
rename to samples/Support7Demos/res/values/arrays.xml
diff --git a/samples/Support7Demos/res/values/strings.xml b/samples/Support7Demos/res/values/strings.xml
new file mode 100644
index 000000000..d7ccc44f5
--- /dev/null
+++ b/samples/Support7Demos/res/values/strings.xml
@@ -0,0 +1,33 @@
+
+
+
+
+ Support v7 Demos
+
+
+
+ Media/MediaRouter
+ This activity demonstrates how to
+ use MediaRouter from the support library. Select a route from the action bar.
+ Play on...
+
+ Play
+ Show Statistics
+
+ Media Route Provider Service Support Library Sample
+ Fixed Volume Remote Playback Route
+ Variable Volume Remote Playback Route
+
diff --git a/samples/Support7Demos/src/com/example/android/supportv7/Support7Demos.java b/samples/Support7Demos/src/com/example/android/supportv7/Support7Demos.java
new file mode 100644
index 000000000..d2e633540
--- /dev/null
+++ b/samples/Support7Demos/src/com/example/android/supportv7/Support7Demos.java
@@ -0,0 +1,151 @@
+/*
+ * Copyright (C) 2013 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.example.android.supportv7;
+
+import android.app.ListActivity;
+import android.content.Intent;
+import android.content.pm.PackageManager;
+import android.content.pm.ResolveInfo;
+import android.os.Bundle;
+import android.view.View;
+import android.widget.ListView;
+import android.widget.SimpleAdapter;
+
+import java.text.Collator;
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.Comparator;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+public class Support7Demos extends ListActivity {
+
+ @Override
+ public void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+
+ Intent intent = getIntent();
+ String path = intent.getStringExtra("com.example.android.apis.Path");
+
+ if (path == null) {
+ path = "";
+ }
+
+ setListAdapter(new SimpleAdapter(this, getData(path),
+ android.R.layout.simple_list_item_1, new String[] { "title" },
+ new int[] { android.R.id.text1 }));
+ getListView().setTextFilterEnabled(true);
+ }
+
+ protected List