How to make HTTP Requests over WiFi directly from Android Wear? -


how can execute http requests or open socket on android wear? used think that's impossible web browser android wear app says folloing:

"[..] works when phone off if have smartwatch android wear 5.1 , wifi"*.

i tested , app can connect internet when paired phone powered off.

whenever open socket or try http requests on android wear connectexception saying failed connect http://foo.com (similar stack trace here). i'm doing different app doing , i'd understand is.

context: i'm working on proof-of-concept , want able execute http requests , open sockets. i'd love know if there's way that. if includes rooting watch , doing adb magic.

to clarify: know data layer api , i'd still able http requests , open sockets.

if watch has wifi , set correctly, can make network calls on watch when watch disconnected phone; when connect phone via bt, wifi disabled. while enabled, should able treat usual network connectivity , make network calls. keep in mind if write app relies on this, app fail work when gets connected phone need handle case , provide alternative app same data (i.e. using phone's connectivity).


Comments

Popular posts from this blog

java - Andrioid studio start fail: Fatal error initializing 'null' -

android - Gradle sync Error:Configuration with name 'default' not found -

StringGrid issue in Delphi XE8 firemonkey mobile app -