• Home
Name Date Size #Lines LOC

..--

.google/03-May-2024-2822

Application/03-May-2024-1,047590

Shared/03-May-2024-210109

Wearable/03-May-2024-1,276784

gradle/wrapper/03-May-2024-66

CONTRIB.mdD03-May-20241.6 KiB3627

CONTRIBUTING.mdD03-May-20241.5 KiB3627

LICENSED03-May-202411.1 KiB204170

READMED03-May-2024554 139

README.mdD03-May-20242.5 KiB6949

build.gradleD03-May-202414 150

gradle.propertiesD03-May-2024853 1814

gradlewD03-May-20245 KiB165122

gradlew.batD03-May-20242.3 KiB9166

settings.gradleD03-May-202448 31

README

1In order to run this application, you need to install the
2wearable apk on a device that has GPS capabilities in
3hardware. In addition, you need to obtain an API key for
4using Map v2 APIs, see the following link for the details:
5https://developers.google.com/maps/documentation/android/start#get_an_android_certificate_and_the_google_maps_api_key
6After getting the key, find the following line in
7Application/src/main/res/values/strings.xml:
8
9<string name="map_v2_api_key">YOUR_MAP_V2_API_KEY</string>
10
11and replace YOUR_MAP_V2_API_KEY with your own key.
12
13

README.md

1
2Android SpeedTracker Sample
3===================================
4
5Sample demonstrates recording location and speed with a Wear device in mind. Location is
6            retrieved via FusedLocatinProvider which retrieves coordinates from the phone or Wear
7            depending on whether the phone is disconnected or not and whether the Wear device has a
8            GPS chip.
9
10Introduction
11------------
12
13Steps for trying out this sample:
14* Compile and install the mobile app onto your mobile device or emulator.
15* Compile and install the wearable app onto your Wear device or emulator.
16(**Note:** wearable apps are not automatically pushed from your mobile device
17unless you build a production release, see [here][1] for more info).
18
19Sample demonstrates retrieving location and speed samples on Wear using the FusedLocationProvider.
20It also passes GPS location information back to the mobile device via the Data Layer to be rendered
21on a Map Fragment.
22
23[1]: https://developer.android.com/training/wearables/apps/creating.html#Install
24
25Pre-requisites
26--------------
27
28- Android SDK 27
29- Android Build Tools v27.0.2
30- Android Support Repository
31
32Getting Started
33---------------
34
35This sample uses the Gradle build system. To build this project, use the
36"gradlew build" command or use "Import Project" in Android Studio.
37
38Support
39-------
40
41- Google+ Community: https://plus.google.com/communities/105153134372062985968
42- Stack Overflow: http://stackoverflow.com/questions/tagged/android
43
44If you've found an error in this sample, please file an issue:
45https://github.com/googlesamples/android-SpeedTracker
46
47Patches are encouraged, and may be submitted by forking this project and
48submitting a pull request through GitHub. Please see CONTRIBUTING.md for more details.
49
50License
51-------
52
53Copyright 2017 The Android Open Source Project, Inc.
54
55Licensed to the Apache Software Foundation (ASF) under one or more contributor
56license agreements.  See the NOTICE file distributed with this work for
57additional information regarding copyright ownership.  The ASF licenses this
58file to you under the Apache License, Version 2.0 (the "License"); you may not
59use this file except in compliance with the License.  You may obtain a copy of
60the License at
61
62http://www.apache.org/licenses/LICENSE-2.0
63
64Unless required by applicable law or agreed to in writing, software
65distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
66WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
67License for the specific language governing permissions and limitations under
68the License.
69