语言

Menu
Sites
Language
Android(Device) - Gear S(emulator) communication sample App

Hi.

I was trying to make a sample app with a tutorial VOD

and a document

 

When I clicked the 'connect button' in tizen emulator , it didn't work and there is error message in the console.

* The error message is :

Can't find variable: webapis

 

I don't know how to do.. Sombody help me!!

Thanks in advance!

------

I almost agree with a opinion :

https://developer.tizen.org/ko/forums/web-application-development/adroid-gear2-communication-sample-app

-----

My environments are :


- Windows 8.1

- java version "1.8.0_20"

- tizen-sdk for wearable 1.0.0 (x64)

- android 4.3

 

-----

I have a gear S device, it works!

(between the android device and the gear S device)

响应

4 回复
daniel kim

Hi,

If you run HellowAccessaryConsumer seperately to Gear emulator, I suggest you to install APK which has wgt file on the android device side.

 

In case of linked mode in wearable application, we need to install package(APK which has wgt) in android device as public user will install like this after they download Gear application from the AppStore.

Then wgt will be transferred to Gear device thorugh bluetooth.

 

I observed similar issue with HelloAccessary and Gallery sample if I install wgt into Gear emulator seperately.

 

I wish this will help you.

rocky yun

hi, daniel.

thanks for your reply.

 

As you said, I tried to SAP test by HelloAccessary App.

But I am confused about your answer..

Is it possible that wgt file can be transferred from a host device to gear emulator by bluetooth?

I think you probably explained about a case 'host(device) - gear(also device)', not 'host(device) - gear(emulator)'.

 

I connected my host device to my computer by USB,

and I installed 3 apk files (SAccessoryService_Emul.apk, SAFTCore_Emul.apk, HostManagerForEmul.apk) in my host deivce 

according to the document 'Guideline on Testing Gear applications using the emulator' , 

(I wanna try to link the URL of the document, but external links are not permitted....)

 

In short, my case is

1. Host (Device) - GearS (Device) : it works!

2. Host(Device) - Gear (emulator which is set up in a computer) : it didn't work.

 

please anybody help me..

thanks!!

AVSukhov

Hello,

Refer following documentation:

http://developer.samsung.com/technical-doc/view.do?v=T000000162

daniel kim

Hello,

I've checked it like as below and it works.

- Android device: I've installed the provider application by installing APK file.

- Gear S device: I've installed the consumer application by building and running wgt in the IDE.

But if it I install the provider application using IDE, then I observe similar things. 

As this is a kind of emulation, same behavior(like transferring  the wgt via bluetooth) was not occurred .