Home | History | Annotate | Download | only in WearVerifyRemoteApp
      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>25</targetSdkVersion>
     27     <targetSdkVersionWear>25</targetSdkVersionWear>
     28 
     29     <wearable>
     30         <has_handheld_app>true</has_handheld_app>
     31     </wearable>
     32 
     33     <dependency>com.google.android.support:wearable:2.0.3</dependency>
     34 
     35     <!-- Include additional dependencies here.-->
     36     <!-- dependency>com.google.android.gms:play-services:5.0.+</dependency -->
     37 
     38     <strings>
     39         <intro>
     40 <![CDATA[
     41 Sample demonstrates best practices for checking if the remote version of your app is installed on a
     42 connected device. This enables standalone Android Wear apps to check if the phone app is installed
     43 and the other way around.
     44 ]]>
     45         </intro>
     46     </strings>
     47     <template src="base" />
     48     <template src="Wear"/>
     49 
     50     <metadata>
     51         <!-- Values: {DRAFT | PUBLISHED | INTERNAL | DEPRECATED | SUPERCEDED} -->
     52         <status>PUBLISHED</status>
     53         <!-- See http://go/sample-categories for details on the next 4 fields. -->
     54         <!-- Most samples just need to udpate the Categories field. This is a comma-
     55              seperated list of topic tags. Unlike the old category system, samples
     56              may have multiple categories, so feel free to add extras. Try to avoid
     57              simply tagging everything with "UI". :)-->
     58         <categories>Getting Started, UI</categories>
     59         <technologies>Android</technologies>
     60         <languages>Java</languages>
     61         <solutions>Mobile</solutions>
     62         <!-- Values: {BEGINNER | INTERMEDIATE | ADVANCED | EXPERT} -->
     63         <level>INTERMEDIATE</level>
     64         <!-- Dimensions: 512x512, PNG fomrat -->
     65         <icon>screenshots/icon-web.png</icon>
     66         <!-- Path to screenshots. Use <img> tags for each. -->
     67         <screenshots>
     68             <img>screenshots/wear-1.png</img>
     69             <img>screenshots/wear-2.png</img>
     70             <img>screenshots/mobile-1.png</img>
     71             <img>screenshots/mobile-2.png</img>
     72         </screenshots>
     73         <!-- List of APIs that this sample should be cross-referenced under. Use <android>
     74         for fully-qualified Framework class names ("android:" namespace).
     75 
     76         Use <ext> for custom namespaces, if needed. See "Samples Index API" documentation
     77         for more details. -->
     78         <api_refs>
     79             <android>android.support.wearable.activity.WearableActivity</android>
     80             <android>android.support.wearable.view.ConfirmationOverlay</android>
     81             <android>com.google.android.gms.common.api.GoogleApiClient</android>
     82             <android>com.google.android.gms.wearable.CapabilityApi</android>
     83             <android>com.google.android.gms.wearable.CapabilityInfo</android>
     84             <android>com.google.android.gms.wearable.Node</android>
     85             <android>com.google.android.gms.wearable.Wearable</android>
     86             <android>com.google.android.wearable.intent.RemoteIntent</android>
     87             <android>com.google.android.wearable.playstore.PlayStoreAvailability</android>
     88         </api_refs>
     89 
     90         <!-- 1-3 line description of the sample here.
     91 
     92             Avoid simply rearranging the sample's title. What does this sample actually
     93             accomplish, and how does it do it? -->
     94         <description>
     95 <![CDATA[
     96 Sample demonstrates best practices for checking if connected mobile device has your app installed
     97 from an Android Wear 2.+ standalone app and the other way around.
     98 ]]>
     99         </description>
    100 
    101         <!-- Multi-paragraph introduction to sample, from an educational point-of-view.
    102         Makrdown formatting allowed. This will be used to generate a mini-article for the
    103         sample on DAC. -->
    104         <intro>
    105             <![CDATA[
    106 Steps for trying out the sample:
    107 * Compile and install the mobile app onto your mobile device or emulator (for mobile
    108 scenario).
    109 * Compile and install the wearable app onto your Wear device or emulator (for Wear
    110 scenario).
    111 
    112 This sample demonstrate best practices for using PlayStoreAvailability and RemoteIntent to check
    113 if the mobile version of your app exists from within your Standalone Wear 2.+ app and the other
    114 way around. Scenarios:
    115 
    116 1. Launch Wear standalone app to verify if the mobile version is installed. If it is not, you will
    117 be able to open the Play Store on the remote mobile device from the app (if it has the Play Store).
    118 
    119 2. Launch Mobile app to verify if the Wear version is installed. If it is not, you will
    120 be able to open the Play Store on the remote Wear device from the app.
    121 
    122 Although there are two apps (Mobile and Wear), each should be looked at as a separate, standalone
    123 apps/experiences.
    124 ]]>
    125         </intro>
    126     </metadata>
    127 </sample>
    128