Top Banner
49
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Samsung Gear SDK
Page 2: Samsung Gear SDK
Page 3: Samsung Gear SDK
Page 4: Samsung Gear SDK

PART 01

PART 02

PART 03

PART 04

Page 5: Samsung Gear SDK

Wearable Application Development Guide

API Reference and Programming Guides accesssory.jar

Integration Guidelines

UI Guidelines for Web App Development

HelloGear

SDK

SDK

SDK

Page 6: Samsung Gear SDK

PART 02

Page 7: Samsung Gear SDK
Page 8: Samsung Gear SDK
Page 9: Samsung Gear SDK

Gear

Page 10: Samsung Gear SDK
Page 11: Samsung Gear SDK

SA.initialize()

SAAgent.findPeerAgents()

SAAgent.onFindPeerAgentResponse()

SAAgent.requestServiceConnection()

SASocket.send()

SASocket.close()

SA.initialize()

SAAgent.onServiceConnectionResponse()

SASocket.onReceive()

Page 12: Samsung Gear SDK

<uses-permission

android:name />

<tizen:privilege name=

"http://developer.samsung.com

/privilege/accessoryprotocol"/>

Page 13: Samsung Gear SDK
Page 14: Samsung Gear SDK
Page 15: Samsung Gear SDK
Page 16: Samsung Gear SDK

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();

}

}

} );

}

Page 17: Samsung Gear SDK

API set includes device specific (sensors), industry standard (media), and UI widgets

Jquery.js, Hammer.js, etc

Page 18: Samsung Gear SDK

PART 03

Page 19: Samsung Gear SDK
Page 20: Samsung Gear SDK
Page 21: Samsung Gear SDK
Page 22: Samsung Gear SDK

% sdb devices % sdb shell % sdb help

Page 23: Samsung Gear SDK

PART 04

Page 24: Samsung Gear SDK

Android App != Gear App

Take advantage of swiping motions

Build for Offline Mode

Page 25: Samsung Gear SDK
Page 26: Samsung Gear SDK
Page 27: Samsung Gear SDK
Page 28: Samsung Gear SDK
Page 29: Samsung Gear SDK
Page 30: Samsung Gear SDK

PART 01

PART 02

PART 03

Page 31: Samsung Gear SDK

PART 1

Page 32: Samsung Gear SDK
Page 33: Samsung Gear SDK
Page 34: Samsung Gear SDK

PART 02

Page 35: Samsung Gear SDK
Page 36: Samsung Gear SDK
Page 37: Samsung Gear SDK
Page 38: Samsung Gear SDK
Page 39: Samsung Gear SDK

PART 03

Page 40: Samsung Gear SDK

C U P

Page 41: Samsung Gear SDK

Gear Fit Application (Android API)

Page 42: Samsung Gear SDK

TextClock DatePicker TimePicker

Slider ThumbnailListBox Media Controller

Button Graph Spinner

Label ProgressBar ListBox

Page 43: Samsung Gear SDK
Page 44: Samsung Gear SDK

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() {

Page 45: Samsung Gear SDK

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); ...

Page 46: Samsung Gear SDK
Page 47: Samsung Gear SDK
Page 48: Samsung Gear SDK
Page 49: Samsung Gear SDK