Sunday, June 22, 2014

Tizen SDK HelloAccessoryConsumer Sample Application Error

When using the guideline for testing the gear applications on emulator, there is a part where you have to install the HelloAccessoryConsumer app on the galaxy gear simulator and the HelloAccessoryProvider app on the host application. While following the guide for the first time, it is possible that you will encounter the following error message:

 js/main.js (44) :err [undefined] msg[undefined  

To get around this error, open the HelloAccessoryConsumer project on your Tizen IDE and look for the accessoryservices.xml file inside the: res/xml folder.

Look for this section
 <supportedTransports>  
      <transport type="TRANSPORT_BT” />  
 </supportedTransports>  

Change the value for the transport type into:
 <supportedTransports>  
      <transport type="TRANSPORT_WIFI" />  
 </supportedTransports>  

After modifying this on the consumer project, open the HelloAccessoryProvider android project. Look for the accessoryservices.xml file inside the: res/xml folder.

Look for this section:

And change the transport like below:

Redeploy both the consumer and the provider application on their corresponding devices.

Original post for this solution can be found in the Samsung Developer Forum.