Languages

Menu
Sites
Language
How to make call from Gear S2 Web App&

Hi.

I want to make phone call on my mobile phone from Gear S2 Web Application. I need to send phone number directly from Gear to Phone Application on smartphone. How can I do it?

I found official example on Developer Samsung com (Companion sample), but it didn't show me how to make call: http://developer.samsung.com/gear/develop/samples/companion

Thank you in advance!

Responses

2 Replies
Yasin Ali

Hi~,

 

After getting phone number from Gear to your phone( e.g. by using Hello Accessory - Web: "Provider (Gear) and Consumer (Android)" )

you need to use this phone number to call. For this portion you may check this link

https://examples.javacodegeeks.com/android/core/telephony/telephonymanager/android-how-to-make-a-phone-call/.

       To send phone number you may change this portion of code in app.js of provider.

 // newData = data + " :: " + new Date();
     newData = data + " :: " +  "12345678" ;
            /* Send new data to Consumer */
    SASocket.sendData(SAAgent.channelIds[0], newData);
    createHTML("Send massage:<br />" + newData);

Hope it will help you. Let me know if it solves your problem. Change data format as per your need.

Thanks.

 

 

 

Umi Sonoda

Hi!

Thank you for your reply, I will try this code!