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.
$ git clone https://github.com/googlesamples/android-WclDemoSample.git WclDemoSample
$ git clone https://github.com/googlesamples/android-WearCompanionLibrary.git WearCompanionLibrary
$ cd WearCompanionLibrary && ./gradlew build
$ cd ../WclDemoSample && ./gradlew build
Please read and follow the steps in the CONTRIBUTING
See LICENSE
1.0
compileSdkVersion 23
minSdkVersion 17
targetSdkVersion 23
versionCode 1
versionName "1.0"
compile fileTree(dir: 'libs', include: ['*.jar'])
compileSdkVersion 23
applicationId "com.example.android.wearable.wcldemo"
minSdkVersion 21
targetSdkVersion 23
versionCode 1
versionName "1.0"
compile fileTree(include: ['*.jar'], dir: 'libs')
compile project(':..:WearCompanionLibrary:WCL')
compile project(':shared')
compileSdkVersion 23
applicationId "com.example.android.wearable.wcldemo"
minSdkVersion 17
targetSdkVersion 23
versionCode 1
versionName "1.0"
compile fileTree(include: ['*.jar'], dir: 'libs')
compile project(':..:WearCompanionLibrary:WCL')
compile 'com.android.support:design:23.1.+'
compile project(':shared')
package com.example.android.wearable.wcldemo.common
package com.example.android.wearable.wcldemo
uses-permission
application .WearApplication
package com.example.android.wearable.wcldemo
uses-permission
application .MobileApplication
The main activity for this mobile application. It opens up with an introductory page and offers a drawer that can take user to different pages; each page show cases one feature of the library.
Launches various activities of the wear companion app.