Guest User

Untitled

a guest
Jan 18th, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <resources>
  3. <string-array name="android_wear_capabilities">
  4. <item>track_phone</item>
  5. </string-array>
  6. </resources>
  7.  
  8. <service android:name=".BackgroundService.WearableService"
  9. android:enabled="true"
  10. android:exported="true" >
  11. <intent-filter>
  12. <action android:name="com.google.android.gms.wearable.CAPABILITY_CHANGED" />
  13. <data android:scheme="wear" android:host="*"/>
  14. </intent-filter>
  15. </service>
  16.  
  17. override fun onCapabilityChanged(p0: CapabilityInfo?) {
  18. super.onCapabilityChanged(p0)
  19. Log.i("WearableService", "Capability changed: {${p0?.nodes?.size ?: "null"}")
  20. }
Add Comment
Please, Sign In to add comment