From 6d36bbe11b884a90f363e479e5da4b560b33dceb Mon Sep 17 00:00:00 2001 From: Robert Ly Date: Wed, 9 Jul 2014 09:23:23 -0700 Subject: docs: fix wear packaging for paid apps instructions Change-Id: Ibf2cbe2e4bcb7e998665b10c5632c786dcc90e76 --- docs/html/training/wearables/apps/packaging.jd | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'docs/html/training') 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.

    -
  1. Copy the signed wearable app into your handheld project's assets/ directory, - referred to as path/to/wearable_app.apk.
  2. +
  3. Copy the signed wearable app to your handheld project's res/raw directory. We'll + refer to the APK as wearable_app.apk.
  4. Create a res/xml/wearable_app_desc.xml file that contains the version and path information of the wearable app:
     <wearableApp package="com.google.android.wearable.myapp">
    -  <versionCode>1</versionCode>
    -  <versionName>1.0</versionName>
    -  <path>path/to/wearable_app.apk</path>
    +  <versionCode>1</versionCode>
    +  <versionName>1.0</versionName>
    +  <rawPathResId>wearable_app</rawPathResId> 
     </wearableApp>
     
    +

    The package, versionCode, and versionName are the -same as values specified in the wearable app's AndroidManifest.xml file. -The path is the full path of wearable_app.apk, relative to the assets/ -directory. +same values specified in the wearable app's AndroidManifest.xml file. +The rawPathResId is the static variable name of the APK resource. For example, +for wearable_app.apk, the static variable name is wearable_app.

  5. -- cgit v1.1