Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <resources>
- <string-array name="android_wear_capabilities">
- <item>track_phone</item>
- </string-array>
- </resources>
- <service android:name=".BackgroundService.WearableService"
- android:enabled="true"
- android:exported="true" >
- <intent-filter>
- <action android:name="com.google.android.gms.wearable.CAPABILITY_CHANGED" />
- <data android:scheme="wear" android:host="*"/>
- </intent-filter>
- </service>
- override fun onCapabilityChanged(p0: CapabilityInfo?) {
- super.onCapabilityChanged(p0)
- Log.i("WearableService", "Capability changed: {${p0?.nodes?.size ?: "null"}")
- }
Add Comment
Please, Sign In to add comment