Name: android-WclDemoSample
Owner: Google Samples
Description: null
Created: 2015-10-26 13:40:56.0
Updated: 2018-01-22 18:46:30.0
Pushed: 2015-11-03 19:01:47.0
Homepage:
null
Size: 875
Language: Java
GitHub Committers
User | Most Recent Commit | # Commits |
Other Committers
User | Email | Most Recent Commit | # Commits |
README
WclDemoSample
This is a sample app that shows how one can set up an application to use the
WearCompanionLibrary. It has both a phone and a wear component. On your mobile, select
a page from the drawer and there, you can open the corresponding page on your
wear device by pressing on the FAB button at the lower right corner of the page. On your
wear device, you can select an item form the list when you run the app. Features
shown here include exchanging data, launching remote app, making HTTP calls from the wear
device, showing variations of WearableListView activities and recording voice on the wear
and streaming that to the mobile device and playing it there in real-time. In order for
each feature to work properly, you have to be on that feature's page on both the mobile app
and the wear app at the same time.
Dependencies
- WearCompanionLibrary (WCL)
- The phone module also depends on the design support library.
- Note: if you follow the instructions below, the WCL library will bring in other dependencies that
are needed. If you choose to use WCL in a different way (for example using an archive version of
that library), then you may need to include the dependencies that are listed for WCL as well.
Setup
- Checkout this project as WclDemoSample:
t clone https://github.com/googlesamples/android-WclDemoSample.git WclDemoSample
- Checkout WCL as a sibling to this project under the name WearCompanionLibrary:
t clone https://github.com/googlesamples/android-WearCompanionLibrary.git WearCompanionLibrary
- To make sure all is working, compile WCL:
WearCompanionLibrary && ./gradlew build
- Compile this project:
../WclDemoSample && ./gradlew build
- To open the project in Android Studio, you may need to first open the WCL project in Android Studio
to build the required “*.iml” file for Android Studio. To do this, start Android Studio and select “Open An Existing
Android Studio Project” and navigate to WearCompanionLibrary directory and select the build.gradle in the root of
that project. This should create the needed files.
- Close Android Studio and open that again and follow the same steps but this time navigate to
WclDemoSample project and select build.gradle there.
References and How to report bugs
- WCL has a documentation (in PDF format) in its project. This code has comments that along with the
WCL's documentation should be adequate to guide you through the sample.
- If you find any issues with this sample, please open a bug here on GitHub; if you find any issue
with WCL or have a feature request, please open a ticket on that repository.
How to make contributions?
Please read and follow the steps in the CONTRIBUTING
License
See LICENSE
Change List
1.0