Languages

Menu
Sites
Language
S2 standalone web image sample code

We had an app for Gear 2 that displayed images from the web.  The phone had to retrieve the images and pass them to the watch.  It's my understanding that the Gear S2 can access the web directly now.  I'm having no luck getting a standalone S2 web app using webapi to do this.  Are there any sample apps that demo this functionality?

Responses

4 Replies
Marco Buettner

The Gear S2 and the Gear S are able to connect to web without pairing to host device. 

Did u setup the config.xml network access correct? If u use 'unknown' online sources u can use "*" as wildcard to allow network access to ALL DOMAINS. 

AVSukhov

Hello,

You can use XMLHTTPRequest api on gear s and gear s2:

https://developer.tizen.org/development/tutorials/web-application/w3chtml5supplementary-features/communication/xmlhttprequest-level-1-and-2

you need add access tag and interner privilege.

colin Rao

I think the jQuery ajax is better. :)

AVSukhov

Hello,

All jQuery functions use XMLHttpRequest object in the background, but provide additional functionality that you don't have to do yourself.

For the convenience, you are right, ajax is better.