PART01
PART02
PART03
PART04
 Wearable Application Development Guide
 API Reference and Programming Guides
 accesssory.jar
 Integration Guidelines
...
PART 02
Gear




SA.initialize()
SAAgent.findPeerAgents()
SAAgent.onFindPeerAgentResponse()
SAAgent.requestServiceConnection()
SASocket.sen...
<uses-permission
android:name />
<tizen:privilege name=
"http://developer.samsung.com
/privilege/accessoryprotocol"/>











function () {
window.addEventListener( 'tizenhwkey', function( ev ) {
if( ev.keyName == "back" ) {
var page = document.get...

 API set includes device specific (sensors),
industry standard (media), and UI widgets
 Jquery.js, Hammer.js, etc



PART 03
% sdb devices
% sdb shell
% sdb help
PART 04
Android App != Gear App


Take advantage of swiping motions

Build for Offline Mode



PART01
PART02
PART03
PART 1
PART 02
PART 03
C U P
Gear Fit Application
(Android API)
TextClock DatePicker TimePicker
Slider ThumbnailListBox Media Controller
Button Graph Spinner
Label ProgressBar ListBox
public class FirstDialog extends ScupDialog {
private RankingDialog mRankingDialog;
private MyMovieDialog myDialog;
privat...
public class FirstDialog extends ScupDialog {
private RankingDialog mRankingDialog;
private MyMovieDialog myDialog;
privat...
Samsung Gear SDK
Samsung Gear SDK
Samsung Gear SDK
Samsung Gear SDK
Samsung Gear SDK
Samsung Gear SDK
Samsung Gear SDK
Samsung Gear SDK
Samsung Gear SDK
Samsung Gear SDK
Samsung Gear SDK
Samsung Gear SDK
Samsung Gear SDK
Samsung Gear SDK
Samsung Gear SDK
Samsung Gear SDK
Samsung Gear SDK
Samsung Gear SDK
Samsung Gear SDK
Samsung Gear SDK
Samsung Gear SDK
Samsung Gear SDK
Samsung Gear SDK
Samsung Gear SDK
Samsung Gear SDK
Samsung Gear SDK
Upcoming SlideShare
Loading in …5
×

Samsung Gear SDK

4,850 views

Published on

Read more: http://j.mp/1d73ZEN

Published in: Technology
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
4,850
On SlideShare
0
From Embeds
0
Number of Embeds
1,935
Actions
Shares
0
Downloads
99
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Samsung Gear SDK

  1. 1. PART01 PART02 PART03 PART04
  2. 2.  Wearable Application Development Guide  API Reference and Programming Guides  accesssory.jar  Integration Guidelines  UI Guidelines for Web App Development  HelloGear  SDK  SDK  SDK
  3. 3. PART 02
  4. 4. Gear    
  5. 5. SA.initialize() SAAgent.findPeerAgents() SAAgent.onFindPeerAgentResponse() SAAgent.requestServiceConnection() SASocket.send() SASocket.close() SA.initialize() SAAgent.onServiceConnectionResponse() SASocket.onReceive()
  6. 6. <uses-permission android:name /> <tizen:privilege name= "http://developer.samsung.com /privilege/accessoryprotocol"/>
  7. 7.         
  8. 8.  
  9. 9. function () { window.addEventListener( 'tizenhwkey', function( ev ) { if( ev.keyName == "back" ) { var page = document.getElementsByClassName( 'ui-page-active' )[0], pageid = page ? page.id : ""; if( pageid === "main" ) { tizen.application.getCurrentApplication().exit(); } else { window.history.back(); } } } ); }
  10. 10.   API set includes device specific (sensors), industry standard (media), and UI widgets  Jquery.js, Hammer.js, etc   
  11. 11. PART 03
  12. 12. % sdb devices % sdb shell % sdb help
  13. 13. PART 04
  14. 14. Android App != Gear App   Take advantage of swiping motions  Build for Offline Mode   
  15. 15. PART01 PART02 PART03
  16. 16. PART 1
  17. 17. PART 02
  18. 18. PART 03
  19. 19. C U P
  20. 20. Gear Fit Application (Android API)
  21. 21. TextClock DatePicker TimePicker Slider ThumbnailListBox Media Controller Button Graph Spinner Label ProgressBar ListBox
  22. 22. public class FirstDialog extends ScupDialog { private RankingDialog mRankingDialog; private MyMovieDialog myDialog; private final Context mContext; public FirstDialog(Context context) { super(context); mContext = context; } public void onCreate() { super.onCreate(); setControlAlignment(ScupDialog.CONTROL_ALIGN_HORIZONTAL_CENTER | ScupDialog.CONTROL_ALIGN_VERTICAL_CENTER); ScupButton button1 = new ScupButtonControl(this); button1.setIcon(R.drawable.reserve_click); button1.setText(“Booking"); button1.setTextSize(6); button1.setAlignment(ScupButton.ALIGN_ICON_ABOVE); button1.setClickListener(new ScupButton.ClickListener() { public void onClick(ScupButton button) { if (mRankingDialog != null) { mRankingDialog.finish(); } // Create movie selection dialog mRankingDialog = new ScupDialog(mContext); … } }; button1.show(); … } } ScupButton button1 = new ScupButtonControl(this); button1.setIcon(R.drawable.reserve_click); button1.setText(“Booking"); button1.setTextSize(6); button1.setAlignment(ScupButton.ALIGN_ICON_ABOVE); button1.setClickListener(new ScupButton.ClickListener() {
  23. 23. public class FirstDialog extends ScupDialog { private RankingDialog mRankingDialog; private MyMovieDialog myDialog; private final Context mContext; public FirstDialog(Context context) { super(context); mContext = context; } public void onCreate() { super.onCreate(); setControlAlignment(ScupDialog.CONTROL_ALIGN_HORIZONTAL_CENTER | ScupDialog.CONTROL_ALIGN_VERTICAL_CENTER); ScupButton button1 = new ScupButtonControl(this); button1.setIcon(R.drawable.reserve_click); button1.setText(“Booking"); button1.setTextSize(6); button1.setAlignment(ScupButton.ALIGN_ICON_ABOVE); button1.setClickListener(new ScupButton.ClickListener() { public void onClick(ScupButton button) { if (mRankingDialog != null) { mRankingDialog.finish(); } // Create movie selection dialog mRankingDialog = new ScupDialog(mContext); … } }; button1.show(); … } } // Create movie selection dialog mRankingDialog = new ScupDialog(mContext); ...

×