How can I execute HTTP requests or open a socket on Android Wear? I used to think it was impossible, but the Android Wear web browser says the following:
"[..] works even when your phone is off, if you have a smart watch with Android Wear 5.1 and WiFi." *
I tested it, and this application MAY connect to the Internet when the paired phone is turned off.
Whenever I open a socket or try HTTP requests on Android Wear, I always get a ConnectException saying failed to connect to http://foo.com (similar stack trace here ). Therefore, I am doing something different than this application does, and I would like to understand what it is.
Context: I am working on a proof of concept and just want to be able to perform HTTP requests and open sockets. I would like to know if there is a way to do this. Even if it involves rooting the watch and doing adb magic.
To clarify: I know about the data-level API, and I would still like to just make HTTP requests and open sockets.
android android wear
Justinangel
source share