Synchronizes weather information from OpenWeatherMap on Android Phones and Tablets. It also contains custom watch face for android wear.
- Download
google-services.json
for this project and place it in app module. You can generate it here. - Add Open weather map api key in
app/build.gradle and sunshinewear/build.gradle
files. - Also, add google places api key in
app/src/main/res/values/strings.xml
file. - Install the watchface by running this command in terminal in the project directory :
./gradlew :sunshinewear:installDebug
- Set the watch face manually in emulator.
- Make sure that the android device is properly paired with the android wear. You can pair your device with android wear (emulator) using these instructions.
- Install the android app in your device using
./gradlew :app:installDebug
command in terminal in the main directory of the project. - Now whenever the android application updates its weather data, it will send the current weather info to the android wear via a dataItem and notify the android wear to update its weather data asap. This will show latest weather info on the android wear watch face.
Initially forked from : https://github.com/udacity/Advanced_Android_Development