Introduction to Samsung Gear SDK

2,910 views

Published on

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.

Introduction to Samsung Gear SDK

  1. 1. Manikantan Krishnamurthy
  2. 2. http://developer.samsung.com/samsung- mobile-sdk#accessory https://developer.tizen.org/downloads/tizen- sdk#wearable Gear 2 apps run on HTML,JS and CSS.
  3. 3. % sdb devices % sdb shell % sdb help
  4. 4. Gear    
  5. 5.    
  6. 6. SA.initialize() SAAgent.findPeerAgents() SAAgent.onFindPeerAgentResponse() SAAgent.requestServiceConnection() SASocket.send() SASocket.close() SA.initialize() SAAgent.onServiceConnectionResponse() SASocket.onReceive()
  7. 7. <uses-permission android:name /> <tizen:privilege name= "http://developer.samsung.com /privilege/accessoryprotocol"/>
  8. 8.   
  9. 9. <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 se nding you our holiday greetings. </div> <footer class="ui-footer"> <a href="#" class="ui-btn" >Footer Button</a> </footer> </div>  
  10. 10. <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>  
  11. 11. <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>  
  12. 12.  http://developer.samsung.com/samsung-gear  http://developer.tizen.org/downloads/sdk/wearable    http://developer.samsung.com/samsung-mobile-sdk#accessory

×