summaryrefslogtreecommitdiffstats
path: root/docs/html/training
diff options
context:
space:
mode:
authorRobert Ly <robertly@google.com>2014-07-09 16:32:17 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-07-09 16:32:17 +0000
commit65ca2e8173436e590bc1c53e91e1bac1fbacfd12 (patch)
tree2040e29e9b63db73fb1e5c2b6eed0777e2af9597 /docs/html/training
parent55f765441c6cec6b2990de12f68d1c4ac444d35c (diff)
parent2d3fca2490e62702838d1b44d4377c242c3340e6 (diff)
downloadframeworks_base-65ca2e8173436e590bc1c53e91e1bac1fbacfd12.zip
frameworks_base-65ca2e8173436e590bc1c53e91e1bac1fbacfd12.tar.gz
frameworks_base-65ca2e8173436e590bc1c53e91e1bac1fbacfd12.tar.bz2
am 2d3fca24: am db520137: Merge "docs: fix wear packaging for paid apps instructions" into klp-modular-dev
* commit '2d3fca2490e62702838d1b44d4377c242c3340e6': docs: fix wear packaging for paid apps instructions
Diffstat (limited to 'docs/html/training')
-rw-r--r--docs/html/training/wearables/apps/packaging.jd17
1 files changed, 9 insertions, 8 deletions
diff --git a/docs/html/training/wearables/apps/packaging.jd b/docs/html/training/wearables/apps/packaging.jd
index 3660099..d09cd08 100644
--- a/docs/html/training/wearables/apps/packaging.jd
+++ b/docs/html/training/wearables/apps/packaging.jd
@@ -102,22 +102,23 @@ if you are using another IDE or another method of building.
</p>
<ol>
- <li>Copy the signed wearable app into your handheld project's <code>assets/</code> directory,
- referred to as <code>path/to/wearable_app.apk</code>.</li>
+ <li>Copy the signed wearable app to your handheld project's <code>res/raw</code> directory. We'll
+ refer to the APK as <code>wearable_app.apk</code>.</li>
<li>Create a <code>res/xml/wearable_app_desc.xml</code> file that contains the version and
path information of the wearable app:
<pre>
&lt;wearableApp package="com.google.android.wearable.myapp"&gt;
- &lt;versionCode>1&lt;/versionCode&gt;
- &lt;versionName>1.0&lt;/versionName&gt;
- &lt;path>path/to/wearable_app.apk&lt;/path&gt;
+ &lt;versionCode&gt;1&lt;/versionCode&gt;
+ &lt;versionName&gt;1.0&lt;/versionName&gt;
+ &lt;rawPathResId>wearable_app&lt;/rawPathResId&gt; <!-- Do not include the .apk extension -->
&lt;/wearableApp&gt;
</pre>
+
<p>
The <code>package</code>, <code>versionCode</code>, and <code>versionName</code> are the
-same as values specified in the wearable app's <code>AndroidManifest.xml</code> file.
-The path is the full path of <code>wearable_app.apk</code>, relative to the <code>assets/</code>
-directory.
+same values specified in the wearable app's <code>AndroidManifest.xml</code> file.
+The <code>rawPathResId</code> is the static variable name of the APK resource. For example,
+for <code>wearable_app.apk</code>, the static variable name is <code>wearable_app</code>.
</p>
</li>
<li>