summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Philip P. Moltmann <moltmann@google.com> 2020-01-31 10:37:52 -0800
committer Philip P. Moltmann <moltmann@google.com> 2020-01-31 10:37:52 -0800
commita356af88a1576ce51a4b99c03643d79c2262c279 (patch)
tree9a37e0c0fa9782659c0ee9b6f78955a5633b4597
parent253528c2ba5197c144fbf239f5995b1a73cbe89e (diff)
Improve the docs of the <feature> tag in the manifest
And link to Context#createFeatureContext as this is the main API for an app to tag code as belonging to a feature. Fixes: 148291926 Test: built Change-Id: Idba8fa06d189e67c646b708fa4cefa8c99f96eb3
-rw-r--r--core/res/res/values/attrs_manifest.xml7
1 files changed, 5 insertions, 2 deletions
diff --git a/core/res/res/values/attrs_manifest.xml b/core/res/res/values/attrs_manifest.xml
index cfed805d5d88..059bc443a609 100644
--- a/core/res/res/values/attrs_manifest.xml
+++ b/core/res/res/values/attrs_manifest.xml
@@ -1781,8 +1781,11 @@
<attr name="crossProfile" format="boolean" />
</declare-styleable>
- <!-- The <code>feature</code> tag declares a feature. A feature is a part of an app. E.g.
- photo sharing app might include a direct messaging component.
+ <!-- The <code>feature</code> tag declares a feature. A feature is a logical part of an app.
+ E.g. photo sharing app might include a direct messaging component. To tag certain code as
+ belonging to a feature, use a context created via
+ {@link android.content.Context#createFeatureContext(String)} for any interaction with the
+ system.
<p>This appears as a child tag of the root {@link #AndroidManifest manifest} tag.