[Gear 2] Problem to run HelloAccessory app from source code

[Gear 2] Problem to run HelloAccessory app from source code

BY 15 Jun 2014 General Support

Hello Tizen Gear2 community, I am trying to develop a sample application. I successfully install fresh copy of HelloAccessoryProvider.apk[ on samsung grand2 device ] and HelloAccessoryConsumer.wgt [ on Gear2 emulator] [ I download these two file from samsung gear2 developer forum ], and it works perfectly. Now my problem Scenario : 

  1. At first I Import the souce code of HelloAccessoryProvider in android eclipse ide and HelloAccessoryConsumer in tizen wearable ide
  2. Then build the HelloAccessoryConsumer to generate HelloAccessoryCosumer.wgt 
  3. After that I copy paste HelloAccessoryConsumer.wgt to HelloAccessoryProvider asset folder
  4. Then I build and run the HelloAccessoryProvider in samsung Galaxy Grand2 device
  5. At last I push and install the the HelloAccessoryConsumer.wgt to Gear2 emulator using the following command “sdb install HelloAccessoryConsumer.wgt”
  6. Now when I open the HelloAccessoryConsumer app in Gear2 emulator and click “connect” button it gives the following error : ” js/main.js (44) :err [undefined] msg[undefined] ” in cosumer application console, and i can not create a connection with the provider application .

Am i missing something in this process ? 

Why consumer application can not create a connection with the provider application ?

Thanks

Written by