Skip to content

Most visited

Recently visited

navigation
WatchFace / Application / res / values /

base-strings.xml

1
<?xml version="1.0" encoding="UTF-8"?>
2
<!--
3
 Copyright 2013 The Android Open Source Project
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
 
18
<resources>
19
    <string name="app_name">WatchFace</string>
20
    <string name="intro_message">
21
        <![CDATA[
22
         
23
 
24
This sample demonstrates how to create watch faces for android wear and includes a phone app
25
and a wearable app. The wearable app has a variety of watch faces including analog, digital,
26
opengl, calendar, steps, interactive, etc. It also includes a watch-side configuration example.
27
The phone app includes a phone-side configuration example.
28
 
29
Because watch face apps do not have a default Activity in their project, you will need to set your
30
Configurations to "Do not launch Activity" for both the Wear and Application modules. If you are
31
unsure how to do this, please review the "Run Starter project" section in the
32
[Google Watch Face Code Lab][1].
33
 
34
For the Fit Distance related watch face, authentication IS a requirement to request distance from
35
Google Fit on Wear. Otherwise, distance will always come back as zero (or stay at whatever the
36
distance was prior to you de-authorizing the watch face).
37
 
38
To authenticate and communicate with Google Fit, you must create a project in the Google Developers
39
Console, activate the Fitness API, create an OAuth 2.0 client ID, and register the public
40
certificate from your signed APK. More details can be found [here][2].
41
 
42
If the user has not installed or setup the Google Fit app on their phone and their Wear device has
43
not configured the Google Fit Wear App, then you may get zero steps until one of the two is setup.
44
Please note, many Wear devices configure the Google Fit Wear App beforehand.
45
 
46
[1]: https://codelabs.developers.google.com/codelabs/watchface/index.html
47
[2]: https://developers.google.com/fit/android/get-started#step_3_enable_the_fitness_api
48
 
49
         
50
        ]]>
51
    </string>
52
</resources>
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a one-minute survey?
Help us improve Android tools and documentation.