xref: /aosp_15_r20/development/samples/browseable/SpeedTracker/_index.jd (revision 90c8c64db3049935a07c6143d7fd006e26f8ecca)
1*90c8c64dSAndroid Build Coastguard Worker
2*90c8c64dSAndroid Build Coastguard Workerpage.tags="SpeedTracker"
3*90c8c64dSAndroid Build Coastguard Workersample.group=Wearable
4*90c8c64dSAndroid Build Coastguard Worker@jd:body
5*90c8c64dSAndroid Build Coastguard Worker
6*90c8c64dSAndroid Build Coastguard Worker<p>
7*90c8c64dSAndroid Build Coastguard Worker
8*90c8c64dSAndroid Build Coastguard WorkerThis sample uses the FusedLocation APIs of Google Play Services
9*90c8c64dSAndroid Build Coastguard Workerto gather location and speed. The sample provides a simple screen that shows the
10*90c8c64dSAndroid Build Coastguard Workercurrent speed of the device on the watch. User can set a speed
11*90c8c64dSAndroid Build Coastguard Workerlimit and if the speed approaches that limit, it changes the
12*90c8c64dSAndroid Build Coastguard Workercolor to yellow and if it exceeds the limit, it turns red. User
13*90c8c64dSAndroid Build Coastguard Workercan also enable recording of coordinates and when it pairs back
14*90c8c64dSAndroid Build Coastguard Workerwith the phone, this data will be synced with the phone
15*90c8c64dSAndroid Build Coastguard Workercomponent of the app and user can see a track made of those
16*90c8c64dSAndroid Build Coastguard Workercoordinates on a map on the phone.
17*90c8c64dSAndroid Build Coastguard Worker
18*90c8c64dSAndroid Build Coastguard Worker        </p>
19