Does Android Wear Support Httpurlconnection - Getting Eofexception
I am wondering if we can access the network through HttpURLConnection from Android Wear? I tried using HttpURLConnection inside Wear code, I am getting EOFException. The same co
Solution 1:
Unfortunately, no.
Android Wear applications cannot directly access the Internet. They must communicate with their corresponding handheld app (either via MessageApi or DataApi) and request that it executes whatever HTTP requests you need.
EDIT: Android Wear 2.0, now in beta, supports network requests, so HttpURLConnection
should work there.
Post a Comment for "Does Android Wear Support Httpurlconnection - Getting Eofexception"