Introduction to Samsung Gear SDK

26
Manikantan Krishnamurthy

description

This presentation covers the basics of developing Samsung Gear apps which run on Samsung Gear 2. This document also touches upon gear-ui which is used to create UIs on the Tizen powered smartwatch.

Transcript of Introduction to Samsung Gear SDK

Page 1: Introduction to Samsung Gear SDK

Manikantan Krishnamurthy

Page 2: Introduction to Samsung Gear SDK
Page 3: Introduction to Samsung Gear SDK
Page 4: Introduction to Samsung Gear SDK
Page 5: Introduction to Samsung Gear SDK
Page 6: Introduction to Samsung Gear SDK
Page 8: Introduction to Samsung Gear SDK
Page 9: Introduction to Samsung Gear SDK

% sdb devices

% sdb shell

% sdb help

Page 10: Introduction to Samsung Gear SDK
Page 11: Introduction to Samsung Gear SDK
Page 12: Introduction to Samsung Gear SDK
Page 13: Introduction to Samsung Gear SDK

Gear

Page 14: Introduction to Samsung Gear SDK
Page 15: Introduction to Samsung Gear SDK
Page 16: Introduction to Samsung Gear SDK
Page 17: Introduction to Samsung Gear SDK
Page 18: Introduction to Samsung Gear SDK
Page 19: Introduction to Samsung Gear SDK

SA.initialize()

SAAgent.findPeerAgents()

SAAgent.onFindPeerAgentResponse()

SAAgent.requestServiceConnection()

SASocket.send()

SASocket.close()

SA.initialize()

SAAgent.onServiceConnectionResponse()

SASocket.onReceive()

Page 20: Introduction to Samsung Gear SDK

<uses-permission

android:name />

<tizen:privilege name=

"http://developer.samsung.com

/privilege/accessoryprotocol"/>

Page 21: Introduction to Samsung Gear SDK
Page 22: Introduction to Samsung Gear SDK

<button type="button" class="ui-btn">Button Default</button><a href="#" class="ui-btn ui-color-red">A Button Red</a><input type="button" class="ui-btn ui-color-orange" value="Input Button Orange" /><button type="button" class="ui-btn ui-color-green">Button Green</button>

<button type="button" class="ui-btn" disabled="disabled">Button disabled</button><button type="button" class="ui-btn ui-btn-icon" style="background-image: url(images/00_icon_back_ef.png);">Button Icon</button>

<div class="ui-page"><header class="ui-header">

<h2 class="ui-title">Call menu</h2></header><div class="ui-content content-padding">

It was a real pleasure for me to finally get to meet you. My colleagues join me in sending you our holiday greetings.</div><footer class="ui-footer">

<a href="#" class="ui-btn" >Footer Button</a></footer>

</div>

Page 23: Introduction to Samsung Gear SDK

<div id="1btnPopup" class="ui-popup"><div class="ui-popup-header">Power saving mode</div><div class="ui-popup-content">Turning on Power saving mode will limit the maximum power</div><div class="ui-popup-footer">

<button id="1btnPopup-cancel" class="ui-btn">Cancel</button></div></div>

<ul class="ui-listview"><li class="li-has-multiline li-has-next-depth">

<a href="#“> Wi-fi<span class="li-text-sub">Overall size of fonts</span> </a> </li>

<li class="li-has-multiline li-has-next-depth"><a href="#“> Bluetooth<span class="li-text-sub">Screen savers and other</span> </a>

</li><li class="li-has-multiline li-has-next-depth disabled">

<a href="#“>Data usage (disabled)<span class="li-text-sub">Overall size of fonts</span></a>

</li></ul>

Page 24: Introduction to Samsung Gear SDK

<div class="ui-processing"></div><div class="ui-processing-text">Description about progress</div>

<progress class="ui-progress-indeterminate" max="100" value="100"></progress><br><progress max="100" value="90"></progress><br><progress max="100" value="50"></progress><div class="ui-progress-proportion">00/20</div><div class="ui-progress-ratio">50%</div><br>

Page 26: Introduction to Samsung Gear SDK