Jeremy Walker | c45c0c2 | 2016-12-02 11:09:10 -0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- |
| 3 | ~ Copyright 2016 Google Inc. |
| 4 | ~ |
| 5 | ~ Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | ~ you may not use this file except in compliance with the License. |
| 7 | ~ You may obtain a copy of the License at |
| 8 | ~ |
| 9 | ~ http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | ~ |
| 11 | ~ Unless required by applicable law or agreed to in writing, software |
| 12 | ~ distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | ~ See the License for the specific language governing permissions and |
| 15 | ~ limitations under the License. |
| 16 | --> |
| 17 | <sample> |
| 18 | <name>WearVerifyRemoteApp</name> |
| 19 | <group>Wearable</group> <!-- This field will be deprecated in the future |
| 20 | and replaced with the "categories" tags below. --> |
| 21 | <package>com.example.android.wearable.wear.wearverifyremoteapp</package> |
| 22 | |
| 23 | <!-- change minSdk if needed--> |
| 24 | <minSdk>23</minSdk> |
| 25 | <minSdkVersionWear>23</minSdkVersionWear> |
| 26 | <targetSdkVersion>24</targetSdkVersion> |
| 27 | <targetSdkVersionWear>24</targetSdkVersionWear> |
| 28 | |
| 29 | <wearable> |
| 30 | <has_handheld_app>true</has_handheld_app> |
| 31 | </wearable> |
| 32 | |
Jeremy Walker | 340c10a | 2016-12-12 11:11:05 -0800 | [diff] [blame^] | 33 | <dependency>com.google.android.support:wearable:2.0.0-beta1</dependency> |
Jeremy Walker | c45c0c2 | 2016-12-02 11:09:10 -0800 | [diff] [blame] | 34 | |
| 35 | <provided_dependency_wearable>com.google.android.wearable:wearable:1.0.0</provided_dependency_wearable> |
Jeremy Walker | 340c10a | 2016-12-12 11:11:05 -0800 | [diff] [blame^] | 36 | <preview_wearable_support_dependency>com.google.android.support:wearable:2.0.0-beta1</preview_wearable_support_dependency> |
Jeremy Walker | c45c0c2 | 2016-12-02 11:09:10 -0800 | [diff] [blame] | 37 | |
| 38 | |
| 39 | <!-- Include additional dependencies here.--> |
| 40 | <!-- dependency>com.google.android.gms:play-services:5.0.+</dependency --> |
| 41 | |
| 42 | <strings> |
| 43 | <intro> |
Jeremy Walker | 967e652 | 2016-12-06 16:33:58 -0800 | [diff] [blame] | 44 | <![CDATA[ |
| 45 | Sample demonstrates best practices for checking if the remote version of your app is installed on a |
| 46 | connected device. This enables standalone Android Wear apps to check if the phone app is installed |
| 47 | and the other way around. |
| 48 | ]]> |
Jeremy Walker | c45c0c2 | 2016-12-02 11:09:10 -0800 | [diff] [blame] | 49 | </intro> |
| 50 | </strings> |
| 51 | <template src="base" /> |
| 52 | <template src="Wear"/> |
| 53 | |
| 54 | <metadata> |
| 55 | <!-- Values: {DRAFT | PUBLISHED | INTERNAL | DEPRECATED | SUPERCEDED} --> |
Jeremy Walker | 967e652 | 2016-12-06 16:33:58 -0800 | [diff] [blame] | 56 | <status>PUBLISHED</status> |
Jeremy Walker | c45c0c2 | 2016-12-02 11:09:10 -0800 | [diff] [blame] | 57 | <!-- See http://go/sample-categories for details on the next 4 fields. --> |
| 58 | <!-- Most samples just need to udpate the Categories field. This is a comma- |
| 59 | seperated list of topic tags. Unlike the old category system, samples |
| 60 | may have multiple categories, so feel free to add extras. Try to avoid |
| 61 | simply tagging everything with "UI". :)--> |
| 62 | <categories>Getting Started, UI</categories> |
| 63 | <technologies>Android</technologies> |
| 64 | <languages>Java</languages> |
| 65 | <solutions>Mobile</solutions> |
| 66 | <!-- Values: {BEGINNER | INTERMEDIATE | ADVANCED | EXPERT} --> |
Jeremy Walker | 967e652 | 2016-12-06 16:33:58 -0800 | [diff] [blame] | 67 | <level>INTERMEDIATE</level> |
Jeremy Walker | c45c0c2 | 2016-12-02 11:09:10 -0800 | [diff] [blame] | 68 | <!-- Dimensions: 512x512, PNG fomrat --> |
| 69 | <icon>screenshots/icon-web.png</icon> |
| 70 | <!-- Path to screenshots. Use <img> tags for each. --> |
| 71 | <screenshots> |
Jeremy Walker | 967e652 | 2016-12-06 16:33:58 -0800 | [diff] [blame] | 72 | <img>screenshots/wear-1.png</img> |
| 73 | <img>screenshots/wear-2.png</img> |
| 74 | <img>screenshots/mobile-1.png</img> |
| 75 | <img>screenshots/mobile-2.png</img> |
Jeremy Walker | c45c0c2 | 2016-12-02 11:09:10 -0800 | [diff] [blame] | 76 | </screenshots> |
| 77 | <!-- List of APIs that this sample should be cross-referenced under. Use <android> |
| 78 | for fully-qualified Framework class names ("android:" namespace). |
| 79 | |
| 80 | Use <ext> for custom namespaces, if needed. See "Samples Index API" documentation |
| 81 | for more details. --> |
| 82 | <api_refs> |
Jeremy Walker | 967e652 | 2016-12-06 16:33:58 -0800 | [diff] [blame] | 83 | <android>android.support.wearable.activity.WearableActivity</android> |
| 84 | <android>android.support.wearable.view.ConfirmationOverlay</android> |
| 85 | <android>com.google.android.gms.common.api.GoogleApiClient</android> |
| 86 | <android>com.google.android.gms.wearable.CapabilityApi</android> |
| 87 | <android>com.google.android.gms.wearable.CapabilityInfo</android> |
| 88 | <android>com.google.android.gms.wearable.Node</android> |
| 89 | <android>com.google.android.gms.wearable.Wearable</android> |
| 90 | <android>com.google.android.wearable.intent.RemoteIntent</android> |
| 91 | <android>com.google.android.wearable.playstore.PlayStoreAvailability</android> |
Jeremy Walker | c45c0c2 | 2016-12-02 11:09:10 -0800 | [diff] [blame] | 92 | </api_refs> |
| 93 | |
| 94 | <!-- 1-3 line description of the sample here. |
| 95 | |
| 96 | Avoid simply rearranging the sample's title. What does this sample actually |
| 97 | accomplish, and how does it do it? --> |
| 98 | <description> |
Jeremy Walker | 967e652 | 2016-12-06 16:33:58 -0800 | [diff] [blame] | 99 | <![CDATA[ |
| 100 | Sample demonstrates best practices for checking if connected mobile device has your app installed |
| 101 | from an Android Wear 2.+ standalone app and the other way around. |
| 102 | ]]> |
Jeremy Walker | c45c0c2 | 2016-12-02 11:09:10 -0800 | [diff] [blame] | 103 | </description> |
| 104 | |
| 105 | <!-- Multi-paragraph introduction to sample, from an educational point-of-view. |
| 106 | Makrdown formatting allowed. This will be used to generate a mini-article for the |
| 107 | sample on DAC. --> |
| 108 | <intro> |
Jeremy Walker | 967e652 | 2016-12-06 16:33:58 -0800 | [diff] [blame] | 109 | <![CDATA[ |
| 110 | Steps for trying out the sample: |
| 111 | * Compile and install the mobile app onto your mobile device or emulator (for mobile |
| 112 | scenario). |
| 113 | * Compile and install the wearable app onto your Wear device or emulator (for Wear |
| 114 | scenario). |
Jeremy Walker | c45c0c2 | 2016-12-02 11:09:10 -0800 | [diff] [blame] | 115 | |
Jeremy Walker | 967e652 | 2016-12-06 16:33:58 -0800 | [diff] [blame] | 116 | This sample demonstrate best practices for using PlayStoreAvailability and RemoteIntent to check |
| 117 | if the mobile version of your app exists from within your Standalone Wear 2.+ app and the other |
| 118 | way around. Scenarios: |
Jeremy Walker | c45c0c2 | 2016-12-02 11:09:10 -0800 | [diff] [blame] | 119 | |
Jeremy Walker | 967e652 | 2016-12-06 16:33:58 -0800 | [diff] [blame] | 120 | 1. Launch Wear standalone app to verify if the mobile version is installed. If it is not, you will |
| 121 | be able to open the Play Store on the remote mobile device from the app (if it has the Play Store). |
| 122 | |
| 123 | 2. Launch Mobile app to verify if the Wear version is installed. If it is not, you will |
| 124 | be able to open the Play Store on the remote Wear device from the app. |
| 125 | |
| 126 | Although there are two apps (Mobile and Wear), each should be looked at as a separate, standalone |
| 127 | apps/experiences. |
| 128 | ]]> |
Jeremy Walker | c45c0c2 | 2016-12-02 11:09:10 -0800 | [diff] [blame] | 129 | </intro> |
| 130 | </metadata> |
| 131 | </sample> |