1

I'm new to wearable development, it's quite standard that wearable only uses GoogleAPIs. But is it possible to call a background service from the phone and send the results back ?

this is my thoughts:

  1. Wearable send an event to the phone via MessageAPI, eg: request a particular news feed.
  2. The phone wakes up it's service when it receives the event.
  3. services does the background task and post the results back to wearable.

I haven't try this approach yet, just want to gather more opinions first. Thanks!

WenChao
  • 3,586
  • 6
  • 32
  • 46

1 Answers1

0

Yes, this is a completely valid approach. I understand, that you are sending the data to the phone, because you need some resource (most likely internet connection) that is not available to you on the wearable?

gruszczy
  • 40,948
  • 31
  • 128
  • 181
  • Yeah, that's correct and I don't want the phone to launch any activities as well. – WenChao May 21 '15 at 03:19
  • 1
    That's perfectly valid. You don't need to have any activity/UI on the phone, just a service that performs request on behalf of the wearable app. It's a proxy. – gruszczy May 21 '15 at 15:12