Your SlideShare is downloading. ×
Samsung Gear SDK
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Samsung Gear SDK

3,621

Published on

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

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

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
3,621
On Slideshare
0
From Embeds
0
Number of Embeds
11
Actions
Shares
0
Downloads
81
Comments
0
Likes
1
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. PART01 PART02 PART03 PART04
  • 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. PART 02
  • 4. Gear    
  • 5. SA.initialize() SAAgent.findPeerAgents() SAAgent.onFindPeerAgentResponse() SAAgent.requestServiceConnection() SASocket.send() SASocket.close() SA.initialize() SAAgent.onServiceConnectionResponse() SASocket.onReceive()
  • 6. <uses-permission android:name /> <tizen:privilege name= "http://developer.samsung.com /privilege/accessoryprotocol"/>
  • 7.         
  • 8.  
  • 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.   API set includes device specific (sensors), industry standard (media), and UI widgets  Jquery.js, Hammer.js, etc   
  • 11. PART 03
  • 12. % sdb devices % sdb shell % sdb help
  • 13. PART 04
  • 14. Android App != Gear App   Take advantage of swiping motions  Build for Offline Mode   
  • 15. PART01 PART02 PART03
  • 16. PART 1
  • 17. PART 02
  • 18. PART 03
  • 19. C U P
  • 20. Gear Fit Application (Android API)
  • 21. TextClock DatePicker TimePicker Slider ThumbnailListBox Media Controller Button Graph Spinner Label ProgressBar ListBox
  • 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. 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); ...

×