Add template description, screenshots, etc. for sample.
Bug: 32581245
Change-Id: I37d580d52e85106e26a3ff3dc3edc12ca8d54db0
diff --git a/wearable/wear/WearVerifyRemoteApp/Application/src/main/AndroidManifest.xml b/wearable/wear/WearVerifyRemoteApp/Application/src/main/AndroidManifest.xml
index bb5ea72..af1ea86 100644
--- a/wearable/wear/WearVerifyRemoteApp/Application/src/main/AndroidManifest.xml
+++ b/wearable/wear/WearVerifyRemoteApp/Application/src/main/AndroidManifest.xml
@@ -22,7 +22,7 @@
<application android:allowBackup="true"
android:label="@string/app_name"
android:icon="@mipmap/ic_launcher"
- android:theme="@style/AppTheme">
+ android:theme="@style/AppThemeCustom">
<activity android:name=".MainMobileActivity">
<intent-filter>
diff --git a/wearable/wear/WearVerifyRemoteApp/Application/src/main/res/values/strings.xml b/wearable/wear/WearVerifyRemoteApp/Application/src/main/res/values/strings.xml
deleted file mode 100644
index 3dd74fd..0000000
--- a/wearable/wear/WearVerifyRemoteApp/Application/src/main/res/values/strings.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
- ~ Copyright 2016 Google Inc.
- ~
- ~ Licensed under the Apache License, Version 2.0 (the "License");
- ~ you may not use this file except in compliance with the License.
- ~ You may obtain a copy of the License at
- ~
- ~ http://www.apache.org/licenses/LICENSE-2.0
- ~
- ~ Unless required by applicable law or agreed to in writing, software
- ~ distributed under the License is distributed on an "AS IS" BASIS,
- ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- ~ See the License for the specific language governing permissions and
- ~ limitations under the License.
- -->
-<resources>
- <string name="app_name">Phone Verify Remote App</string>
-</resources>
\ No newline at end of file
diff --git a/wearable/wear/WearVerifyRemoteApp/Application/src/main/res/values/styles.xml b/wearable/wear/WearVerifyRemoteApp/Application/src/main/res/values/styles.xml
index 3745bec..996e5b6 100644
--- a/wearable/wear/WearVerifyRemoteApp/Application/src/main/res/values/styles.xml
+++ b/wearable/wear/WearVerifyRemoteApp/Application/src/main/res/values/styles.xml
@@ -17,7 +17,7 @@
<resources>
<!-- Base application theme. -->
- <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
+ <style name="AppThemeCustom" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
diff --git a/wearable/wear/WearVerifyRemoteApp/Wearable/build.gradle b/wearable/wear/WearVerifyRemoteApp/Wearable/build.gradle
index 6cbc612..2c4d430 100644
--- a/wearable/wear/WearVerifyRemoteApp/Wearable/build.gradle
+++ b/wearable/wear/WearVerifyRemoteApp/Wearable/build.gradle
@@ -5,7 +5,7 @@
}
dependencies {
- classpath 'com.android.tools.build:gradle:2.2.1'
+ classpath 'com.android.tools.build:gradle:2.2.3'
}
}
diff --git a/wearable/wear/WearVerifyRemoteApp/screenshots/mobile-1.png b/wearable/wear/WearVerifyRemoteApp/screenshots/mobile-1.png
new file mode 100644
index 0000000..0f37232
--- /dev/null
+++ b/wearable/wear/WearVerifyRemoteApp/screenshots/mobile-1.png
Binary files differ
diff --git a/wearable/wear/WearVerifyRemoteApp/screenshots/mobile-2.png b/wearable/wear/WearVerifyRemoteApp/screenshots/mobile-2.png
new file mode 100644
index 0000000..6e6ee93
--- /dev/null
+++ b/wearable/wear/WearVerifyRemoteApp/screenshots/mobile-2.png
Binary files differ
diff --git a/wearable/wear/WearVerifyRemoteApp/screenshots/wear-1.png b/wearable/wear/WearVerifyRemoteApp/screenshots/wear-1.png
new file mode 100644
index 0000000..9bc8b2d
--- /dev/null
+++ b/wearable/wear/WearVerifyRemoteApp/screenshots/wear-1.png
Binary files differ
diff --git a/wearable/wear/WearVerifyRemoteApp/screenshots/wear-2.png b/wearable/wear/WearVerifyRemoteApp/screenshots/wear-2.png
new file mode 100644
index 0000000..512669c
--- /dev/null
+++ b/wearable/wear/WearVerifyRemoteApp/screenshots/wear-2.png
Binary files differ
diff --git a/wearable/wear/WearVerifyRemoteApp/template-params.xml b/wearable/wear/WearVerifyRemoteApp/template-params.xml
index fc46c83..1bc2fd7 100644
--- a/wearable/wear/WearVerifyRemoteApp/template-params.xml
+++ b/wearable/wear/WearVerifyRemoteApp/template-params.xml
@@ -41,10 +41,11 @@
<strings>
<intro>
- <![CDATA[
- Introductory text that explains what the sample is intended to demonstrate. Edit
- in template-params.xml.
- ]]>
+<![CDATA[
+Sample demonstrates best practices for checking if the remote version of your app is installed on a
+connected device. This enables standalone Android Wear apps to check if the phone app is installed
+and the other way around.
+]]>
</intro>
</strings>
<template src="base" />
@@ -52,7 +53,7 @@
<metadata>
<!-- Values: {DRAFT | PUBLISHED | INTERNAL | DEPRECATED | SUPERCEDED} -->
- <status>DRAFT</status>
+ <status>PUBLISHED</status>
<!-- See http://go/sample-categories for details on the next 4 fields. -->
<!-- Most samples just need to udpate the Categories field. This is a comma-
seperated list of topic tags. Unlike the old category system, samples
@@ -63,25 +64,15 @@
<languages>Java</languages>
<solutions>Mobile</solutions>
<!-- Values: {BEGINNER | INTERMEDIATE | ADVANCED | EXPERT} -->
- <!-- Beginner is for "getting started" type content, or essential content.
- (e.g. "Hello World", activities, intents)
-
- Intermediate is for content that covers material a beginner doesn't need
- to know, but that a skilled developer is expected to know.
- (e.g. services, basic styles and theming, sync adapters)
-
- Advanced is for highly technical content geared towards experienced developers.
- (e.g. performance optimizations, custom views, bluetooth)
-
- Expert is reserved for highly technical or specialized content, and should
- be used sparingly. (e.g. VPN clients, SELinux, custom instrumentation runners) -->
- <level>BEGINNER</level>
+ <level>INTERMEDIATE</level>
<!-- Dimensions: 512x512, PNG fomrat -->
<icon>screenshots/icon-web.png</icon>
<!-- Path to screenshots. Use <img> tags for each. -->
<screenshots>
- <img>screenshots/1-main.png</img>
- <img>screenshots/2-settings.png</img>
+ <img>screenshots/wear-1.png</img>
+ <img>screenshots/wear-2.png</img>
+ <img>screenshots/mobile-1.png</img>
+ <img>screenshots/mobile-2.png</img>
</screenshots>
<!-- List of APIs that this sample should be cross-referenced under. Use <android>
for fully-qualified Framework class names ("android:" namespace).
@@ -89,7 +80,15 @@
Use <ext> for custom namespaces, if needed. See "Samples Index API" documentation
for more details. -->
<api_refs>
- <android>android.app.ActionBar</android>
+ <android>android.support.wearable.activity.WearableActivity</android>
+ <android>android.support.wearable.view.ConfirmationOverlay</android>
+ <android>com.google.android.gms.common.api.GoogleApiClient</android>
+ <android>com.google.android.gms.wearable.CapabilityApi</android>
+ <android>com.google.android.gms.wearable.CapabilityInfo</android>
+ <android>com.google.android.gms.wearable.Node</android>
+ <android>com.google.android.gms.wearable.Wearable</android>
+ <android>com.google.android.wearable.intent.RemoteIntent</android>
+ <android>com.google.android.wearable.playstore.PlayStoreAvailability</android>
</api_refs>
<!-- 1-3 line description of the sample here.
@@ -97,22 +96,36 @@
Avoid simply rearranging the sample's title. What does this sample actually
accomplish, and how does it do it? -->
<description>
- Sample demonstrating how to instantiate an ActionBar on Android, define
- action items, and set an "up" navigation link. Uses the Support Library
- for compatibility with pre-3.0 devices.
+<![CDATA[
+Sample demonstrates best practices for checking if connected mobile device has your app installed
+from an Android Wear 2.+ standalone app and the other way around.
+]]>
</description>
<!-- Multi-paragraph introduction to sample, from an educational point-of-view.
Makrdown formatting allowed. This will be used to generate a mini-article for the
sample on DAC. -->
<intro>
- Long intro here.
+ <![CDATA[
+Steps for trying out the sample:
+* Compile and install the mobile app onto your mobile device or emulator (for mobile
+scenario).
+* Compile and install the wearable app onto your Wear device or emulator (for Wear
+scenario).
- Multi-paragraph introduction to sample, from an educational point-of-view.
- *Makrdown* formatting allowed. See [Markdown Documentation][1]
- for details.
+This sample demonstrate best practices for using PlayStoreAvailability and RemoteIntent to check
+if the mobile version of your app exists from within your Standalone Wear 2.+ app and the other
+way around. Scenarios:
- [1]: http://daringfireball.net/projects/markdown/syntax
+1. Launch Wear standalone app to verify if the mobile version is installed. If it is not, you will
+be able to open the Play Store on the remote mobile device from the app (if it has the Play Store).
+
+2. Launch Mobile app to verify if the Wear version is installed. If it is not, you will
+be able to open the Play Store on the remote Wear device from the app.
+
+Although there are two apps (Mobile and Wear), each should be looked at as a separate, standalone
+apps/experiences.
+]]>
</intro>
</metadata>
</sample>