From 71d58705d8c769cd9000b012f93eb571472ba9d4 Mon Sep 17 00:00:00 2001
From: Joe Fernandez
Date: Mon, 1 Dec 2014 21:22:53 -0800
Subject: [PATCH] docs: Fixes for App Indexing training class
b/18244320
b/17982146
Change-Id: Ic095c3c73d09fa2d7f3c08fa47763fa8589683af
---
docs/html/training/app-indexing/deep-linking.jd | 15 +++++++++++----
docs/html/training/app-indexing/index.jd | 2 +-
2 files changed, 12 insertions(+), 5 deletions(-)
diff --git a/docs/html/training/app-indexing/deep-linking.jd b/docs/html/training/app-indexing/deep-linking.jd
index a52ae95b80116..26799370015c3 100644
--- a/docs/html/training/app-indexing/deep-linking.jd
+++ b/docs/html/training/app-indexing/deep-linking.jd
@@ -61,13 +61,15 @@ in your manifest for deep linking. The URIs {@code “example://gizmos”} and
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
- <!-- Accepts URIs that begin with "example://gizmos” -->
- <data android:scheme="example"
- android:host="gizmos" />
<!-- Accepts URIs that begin with "http://www.example.com/gizmos” -->
<data android:scheme="http"
android:host="www.example.com"
- android:pathPrefix="gizmos" />
+ android:pathPrefix="/gizmos" />
+ <!-- note that the leading "/" is required for pathPrefix-->
+ <!-- Accepts URIs that begin with "example://gizmos”
+ <data android:scheme="example"
+ android:host="gizmos" />
+ -->
</intent-filter>
</activity>
@@ -76,6 +78,11 @@ in your manifest for deep linking. The URIs {@code “example://gizmos”} and
manifest, Android is able to route any {@link android.content.Intent}
that has matching URIs to your app at runtime.
+
+ Note: Intent filters may only contain a single {@code data} element
+ for a URI pattern. Create separate intent filters to capture additional URI patterns.
+
+
To learn more about defining intent filters, see Allow Other Apps to Start Your Activity.
Read Data from Incoming Intents
diff --git a/docs/html/training/app-indexing/index.jd b/docs/html/training/app-indexing/index.jd
index 7e7241b1fe3cd..45afea89a05ea 100644
--- a/docs/html/training/app-indexing/index.jd
+++ b/docs/html/training/app-indexing/index.jd
@@ -24,7 +24,7 @@ Filters
-
+
Video
DevBytes: App Indexing