Locus Map - add-on Wearables floschl's fork
This addon is a fork of the original Locus Map - add-on Wearables. Many thanks to Asamm Software and Menion for providing it to open source!
Commits from @mzperxx and @Hadatko were merged into this fork. (16/05/17)
Original project description from @mzperxx
The purpose of this fork to add functionalities what I would like to see when I use the watch for my workouts and for my outdoor activities. I develop it for fun and when I have time.
My usage scenarios are: short-run (about 1 hour), long run (3-5 hours), hiking and cycling (< 8 hours). Usually I wear hr belt.
My expectations for short-run: always-on screen, show hr, show statistical data like avg speed, distance etc...
My expectation for long-run and for other long lasting activities: battery survives the activity, see the battery level of the watch and the phone, alert if I left the pre-selected route, map where I can zoom in/out.
What functionalities what I have added so far:
-
when track recoding is running there are 3 different screens. screen1: time elapsed, average speed, distance, cummulative altitude. screen2: actual hr, avg hr, max hr. screen3: control buttons (stop, pause, add waypoint) and the battery levels of the watch and the phone.
-
Zooming function on the map screen: the screen are divided to three zones (top, middle, bottom) if you tap on a zone it will select a different zoom level (18,19,20).
-
Ambient mode: when the watch is in ambient mode all data will be sinchronized less often to save battery. In ambient mode the map screen switches off (goes to black).
-
Settings panel where you can customize the following settings:
- Ambient mode where you can control screen switching on/off and set long refresh period (once per minute). For the best battery saving set the all options to on.
- Alarms where you can set up low battery alarm for device or for watch. This is a visual alarm.
- Map screen: where you can switch on/off navigation panel and you can set up the zoom levels.
My test environment
Virtual with AVDs
- Device: to be filled
- Wear: to be filled
Real
- Samsung S5 G900F (Android 6.0.1, Marshmallow)
- Sony Smartwatch 3
- Locus Pro
- The addon is compiled with locus-api-android: 0.2.9
Setting up IDE
- Clone this repo
- On startup of latest Android Studio: Import project (Eclipse ADT, Gradle, etc.)
- Update Android Studio to latest SDK, update Gradle plugin, normally you will be asked for everything in Android Studio. Compile settings should be all included in build.gradle files