diff --git a/samples/CaptionOverlayActivity/Android.mk b/samples/CaptionOverlayActivity/Android.mk
new file mode 100644
index 000000000..c4a8c87d7
--- /dev/null
+++ b/samples/CaptionOverlayActivity/Android.mk
@@ -0,0 +1,16 @@
+LOCAL_PATH:= $(call my-dir)
+include $(CLEAR_VARS)
+
+LOCAL_MODULE_TAGS := samples
+
+# Only compile source java files in this apk.
+LOCAL_SRC_FILES := $(call all-java-files-under, src)
+
+LOCAL_PACKAGE_NAME := CaptionOverlayActivity
+
+LOCAL_SDK_VERSION := current
+
+include $(BUILD_PACKAGE)
+
+# Use the following include to make our test apk.
+include $(call all-makefiles-under,$(LOCAL_PATH))
diff --git a/samples/CaptionOverlayActivity/AndroidManifest.xml b/samples/CaptionOverlayActivity/AndroidManifest.xml
new file mode 100644
index 000000000..44402773a
--- /dev/null
+++ b/samples/CaptionOverlayActivity/AndroidManifest.xml
@@ -0,0 +1,28 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/samples/CaptionOverlayActivity/res/layout/caption_overlay_layout.xml b/samples/CaptionOverlayActivity/res/layout/caption_overlay_layout.xml
new file mode 100644
index 000000000..68d5434fc
--- /dev/null
+++ b/samples/CaptionOverlayActivity/res/layout/caption_overlay_layout.xml
@@ -0,0 +1,43 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/samples/CaptionOverlayActivity/res/values/strings.xml b/samples/CaptionOverlayActivity/res/values/strings.xml
new file mode 100644
index 000000000..fcaebd14a
--- /dev/null
+++ b/samples/CaptionOverlayActivity/res/values/strings.xml
@@ -0,0 +1,22 @@
+
+
+
+
+
+ Hello, World!
+ Thanks for All the Fish!
+
+
diff --git a/samples/CaptionOverlayActivity/src/com/example/android/captionoverlayactivity/CaptionOverlayActivity.java b/samples/CaptionOverlayActivity/src/com/example/android/captionoverlayactivity/CaptionOverlayActivity.java
new file mode 100644
index 000000000..5b29005cc
--- /dev/null
+++ b/samples/CaptionOverlayActivity/src/com/example/android/captionoverlayactivity/CaptionOverlayActivity.java
@@ -0,0 +1,49 @@
+/*
+ * Copyright (C) 2007 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.captionoverlayactivity;
+
+import android.app.ActionBar;
+import android.app.Activity;
+import android.os.Bundle;
+import android.view.View;
+
+/**
+ * A minimal application that overlays caption on the content.
+ */
+public class CaptionOverlayActivity extends Activity {
+ /**
+ * Called with the activity is first created.
+ */
+ @Override
+ public void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ // Overlay the caption on the content.
+ overlayWithDecorCaption(true);
+ setContentView(R.layout.caption_overlay_layout);
+
+ View decorView = getWindow().getDecorView();
+ // Hide the status bar, because it likes to consume touch events.
+ int uiOptions = View.SYSTEM_UI_FLAG_FULLSCREEN;
+ decorView.setSystemUiVisibility(uiOptions);
+ // Remember that you should never show the action bar if the
+ // status bar is hidden, so hide that too if necessary.
+ ActionBar actionBar = getActionBar();
+ actionBar.hide();
+
+ }
+}
+