programming the sony smartwatch -...

22
Programming the Sony Smartwatch

Upload: others

Post on 11-Jul-2020

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Programming the Sony Smartwatch - Meetupfiles.meetup.com/1954971/Programming_The_Sony_Smartwatch_2.pdfProgramming the Smartwatch 2 One Host Application for each Smart Accessory –

Programming the Sony Smartwatch

Page 2: Programming the Sony Smartwatch - Meetupfiles.meetup.com/1954971/Programming_The_Sony_Smartwatch_2.pdfProgramming the Smartwatch 2 One Host Application for each Smart Accessory –

Sony Smartwatch - History

● Sony Ericsson: MW100● Sony Smartwatch (access to Widget API)● Sony Smartwatch 2 (Control API with layouts)● Over 300 app extensions already● Defaults apps: Call handling, Missed call notification,

SMS/MMS, Email, Gmail, Facebook, Twitter, Music remote extension/music handling, Calendar, Slideshow

● Interesting apps:

Page 3: Programming the Sony Smartwatch - Meetupfiles.meetup.com/1954971/Programming_The_Sony_Smartwatch_2.pdfProgramming the Smartwatch 2 One Host Application for each Smart Accessory –

Smartwatch 2 – Specifications

- Resolution: 220x176 pixels- Size: 42 x 9 x 41 mm

- Bluetooth 3.0- Android release: 4.0 and later

- Charges via micro USB- Water resistant IP57

- Transflective LCD 1.6”

Page 4: Programming the Sony Smartwatch - Meetupfiles.meetup.com/1954971/Programming_The_Sony_Smartwatch_2.pdfProgramming the Smartwatch 2 One Host Application for each Smart Accessory –

Smartwatch 2 - Specifications

- CPU: 180MHz ARM Cortex-M3- display controller: LD7131

- Buzzer / Vibrator- Accelerometer- Touch Sensors- Light sensor - Action key - Back key

- Home key (not accessible to applications)

Page 5: Programming the Sony Smartwatch - Meetupfiles.meetup.com/1954971/Programming_The_Sony_Smartwatch_2.pdfProgramming the Smartwatch 2 One Host Application for each Smart Accessory –
Page 6: Programming the Sony Smartwatch - Meetupfiles.meetup.com/1954971/Programming_The_Sony_Smartwatch_2.pdfProgramming the Smartwatch 2 One Host Application for each Smart Accessory –

Programming the Smartwatch 2

Page 7: Programming the Sony Smartwatch - Meetupfiles.meetup.com/1954971/Programming_The_Sony_Smartwatch_2.pdfProgramming the Smartwatch 2 One Host Application for each Smart Accessory –
Page 8: Programming the Sony Smartwatch - Meetupfiles.meetup.com/1954971/Programming_The_Sony_Smartwatch_2.pdfProgramming the Smartwatch 2 One Host Application for each Smart Accessory –
Page 9: Programming the Sony Smartwatch - Meetupfiles.meetup.com/1954971/Programming_The_Sony_Smartwatch_2.pdfProgramming the Smartwatch 2 One Host Application for each Smart Accessory –
Page 10: Programming the Sony Smartwatch - Meetupfiles.meetup.com/1954971/Programming_The_Sony_Smartwatch_2.pdfProgramming the Smartwatch 2 One Host Application for each Smart Accessory –
Page 11: Programming the Sony Smartwatch - Meetupfiles.meetup.com/1954971/Programming_The_Sony_Smartwatch_2.pdfProgramming the Smartwatch 2 One Host Application for each Smart Accessory –
Page 12: Programming the Sony Smartwatch - Meetupfiles.meetup.com/1954971/Programming_The_Sony_Smartwatch_2.pdfProgramming the Smartwatch 2 One Host Application for each Smart Accessory –
Page 13: Programming the Sony Smartwatch - Meetupfiles.meetup.com/1954971/Programming_The_Sony_Smartwatch_2.pdfProgramming the Smartwatch 2 One Host Application for each Smart Accessory –
Page 14: Programming the Sony Smartwatch - Meetupfiles.meetup.com/1954971/Programming_The_Sony_Smartwatch_2.pdfProgramming the Smartwatch 2 One Host Application for each Smart Accessory –
Page 15: Programming the Sony Smartwatch - Meetupfiles.meetup.com/1954971/Programming_The_Sony_Smartwatch_2.pdfProgramming the Smartwatch 2 One Host Application for each Smart Accessory –
Page 16: Programming the Sony Smartwatch - Meetupfiles.meetup.com/1954971/Programming_The_Sony_Smartwatch_2.pdfProgramming the Smartwatch 2 One Host Application for each Smart Accessory –

Programming the Smartwatch 2

● One Host Application for each Smart Accessory– communicates with the hardware unit.

– provides building blocks for the UI on the accessory.

– handles related Smart Extension API signals

– displays a UI on the phone enabling users to customise certain behaviours, such as enable and disable extensions, enable and disable vibrator and more.

● A smart extension is an app extended to work with Sony's smart watches/accessories– every Smart Extension application will have to implement at least the Registration and Capabilities API plus

one or more of the other APIs

– All Smart Extension apps are run in a service

– Needs to specify the extenion apis permission in Manifest

● Apps written for Smartwatch will work on Smartwatch 2● Extend existing app or create new app extension● Icons on smartwatch 2 should be 48x48● Action Buttons● Horizontal Screen Buttons

Page 17: Programming the Sony Smartwatch - Meetupfiles.meetup.com/1954971/Programming_The_Sony_Smartwatch_2.pdfProgramming the Smartwatch 2 One Host Application for each Smart Accessory –
Page 18: Programming the Sony Smartwatch - Meetupfiles.meetup.com/1954971/Programming_The_Sony_Smartwatch_2.pdfProgramming the Smartwatch 2 One Host Application for each Smart Accessory –
Page 19: Programming the Sony Smartwatch - Meetupfiles.meetup.com/1954971/Programming_The_Sony_Smartwatch_2.pdfProgramming the Smartwatch 2 One Host Application for each Smart Accessory –

Programming the Smartwatch 2

● 4 APIs – Intent or ContentProvider based– Notification API: Can typically be used by simple event driven data providers such

as SMS, MMS, Missed Calls, Facebook, Twitter etc● adds events to a content provider in Smart Connect

– Control API: The most advanced, it lets you take full control of the accessory screen● Uses subset of Android layouts including Gallery and ListView – means less data transferred

over bluetooth

– Widget API: Display a widget on the accessory (Widgets not supported on Smartwatch 2)

– Sensor API: This API makes the accessory’s sensor data available to the Extensions application

– Registration and Capabilities API: used by the host application to inform Smart Extension APIs about the capabilities of the accessory, and by the Smart Extension app to inform the host application about which of the other APIs that are used.

Page 20: Programming the Sony Smartwatch - Meetupfiles.meetup.com/1954971/Programming_The_Sony_Smartwatch_2.pdfProgramming the Smartwatch 2 One Host Application for each Smart Accessory –

Programming the Smartwatch 2

● Android Layouts: requires less data to be sent over bluetooth (Smartwatch implementation simply supported bitmaps)

● Sample: Sample Control● Uses Control API● Advanced Sample Control● Uses Layout with Gallery and ListView widgets

Page 21: Programming the Sony Smartwatch - Meetupfiles.meetup.com/1954971/Programming_The_Sony_Smartwatch_2.pdfProgramming the Smartwatch 2 One Host Application for each Smart Accessory –

Programming the Smartwatch 2

● When deploying to play store, add to description the sentence: “Smart Connect extension for SmartWatch 2”

Page 22: Programming the Sony Smartwatch - Meetupfiles.meetup.com/1954971/Programming_The_Sony_Smartwatch_2.pdfProgramming the Smartwatch 2 One Host Application for each Smart Accessory –

References

● Sony Smartwatch User Guide:– http://userguide.sonymobile.com/referrer.php?Region=global-en&product=smartwatch-2-sw2

● Sony Addon SDK:– http://developer.sonymobile.com/knowledge-base/sony-add-on-sdk/

● How to create a Smartwatch 2 Extension– http://developer.sonymobile.com/knowledge-base/tutorials/android_tutorial/how-to-create-an-app-extension-for-so

ny-smartwatch-2/

● Developer Specifications / Guidelines– http://dl-developer.sonymobile.com/documentation/other/SmartWatch_products_3.pdf

● Sony Addon SDK Documentation Kit:– http://developer.sonymobile.com/downloads/documentation/sony-add-on-sdk-documentation-kit/

● How_to_use_the_Smart_Extension_APIs.pdf