Merge "docs: Fixes for App Indexing training class" into lmp-docs
This commit is contained in:
committed by
Android (Google) Code Review
commit
709df4fa26
@@ -61,13 +61,15 @@ in your manifest for deep linking. The URIs {@code “example://gizmos”} and
|
|||||||
<action android:name="android.intent.action.VIEW" />
|
<action android:name="android.intent.action.VIEW" />
|
||||||
<category android:name="android.intent.category.DEFAULT" />
|
<category android:name="android.intent.category.DEFAULT" />
|
||||||
<category android:name="android.intent.category.BROWSABLE" />
|
<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” -->
|
<!-- Accepts URIs that begin with "http://www.example.com/gizmos” -->
|
||||||
<data android:scheme="http"
|
<data android:scheme="http"
|
||||||
android:host="www.example.com"
|
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>
|
</intent-filter>
|
||||||
</activity>
|
</activity>
|
||||||
</pre>
|
</pre>
|
||||||
@@ -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}
|
manifest, Android is able to route any {@link android.content.Intent}
|
||||||
that has matching URIs to your app at runtime.</p>
|
that has matching URIs to your app at runtime.</p>
|
||||||
|
|
||||||
|
<p class="note">
|
||||||
|
<strong>Note:</strong> Intent filters may only contain a single {@code data} element
|
||||||
|
for a URI pattern. Create separate intent filters to capture additional URI patterns.
|
||||||
|
</p>
|
||||||
|
|
||||||
<p>To learn more about defining intent filters, see <a href="{@docRoot}training/basics/intents/filters.html">Allow Other Apps to Start Your Activity</a>.</p>
|
<p>To learn more about defining intent filters, see <a href="{@docRoot}training/basics/intents/filters.html">Allow Other Apps to Start Your Activity</a>.</p>
|
||||||
|
|
||||||
<h2 id="handling-intents">Read Data from Incoming Intents</h2>
|
<h2 id="handling-intents">Read Data from Incoming Intents</h2>
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ Filters</a></li>
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<a class="notice-developers-video wide" href="http://www.youtube.com/watch?v=Xh_W82JgOms">
|
<a class="notice-developers-video wide" href="http://www.youtube.com/watch?v=aISUYHTkTOU">
|
||||||
<div>
|
<div>
|
||||||
<h3>Video</h3>
|
<h3>Video</h3>
|
||||||
<p>DevBytes: App Indexing</p>
|
<p>DevBytes: App Indexing</p>
|
||||||
|
|||||||
Reference in New Issue
Block a user