Search code examples
androidweb-serviceswear-osokhttpandroid-wear-data-api

Android Wear + Webservice Calls


I am trying to use OkHttp with Android Wear App. All the Internet and required permissions are there.

As of goggling, I found that we can't communicate Web-service directly from the App ? We'll have to use Message and Data Api to pass the Data from Device to wear ?

Any other way for Webservice calling ?


Solution

  • Since Android Wear doesn't require direct Internet connectivity, this is unfortunately not possible. There are a few devices that has WiFi, but there is no good way of filtering that in Google Play for now. Your best option is exactly what you described, perform the web service call from the application on your handset and deliver the result using the Data API to your Android Wear application.