Software since 1998 - Sony Mobile · •Software since 1998 •Developing and architecting for a...
Transcript of Software since 1998 - Sony Mobile · •Software since 1998 •Developing and architecting for a...
2012-06-12 2
• Software since 1998 • Developing and architecting for a wide range of
platforms, systems and languages
• Sony Mobile since 2008 • Prototyping, concepts, development • Feature architect for Xperia™ SmartTags • Developer advocat for Sony Mobile Smart accessories
Jerker Lindgren Götsten
2012-06-12 4
Introduction
Pocket it
Bag it
Store it
2012-06-12 5
SmartWatch – The buzz!
2012-06-12 6
SmartWatch - What’s in it for you as a developer?
• Selling well!
• High reach – little effort
• ~150 extensions on Google Play
• Extensions found by SmartWatch
2012-06-12 7
1.3” OLED display 128x128 pixels 65536 colors
Touch screen
Vibrator
Accelerometer
Battery life ~ 4 days The Brain!
Host application
Extensions!
SmartWatch – What is it, really?
2012-06-12 8
SmartWatch – Extensions
• Brings the functionality
• Extended Android applications
• Standalone SmartWatch apps
2012-06-12 9
SmartWatch – The APIs
• Notification
• Widget
• Control
• Sensor
4 APIs:
2012-06-12 10
SmartWatch - Components
Smart Connect
Hub!
Host application
Device communication!
Extensions
Functionality!
2012-06-12 11
SmartWatch extensions - Communication
- Intents - LocalSocket
(sensor data)
- Intents - Content providers
Abstraction in utility classes!
2012-06-12 12
SmartWatch – Foundation
Smart Connect
2012-06-12 13
SmartWatch – Notification API
Phone
Accessory
Extension Smart
Connect
2012-06-12 14
SmartWatch – Widget API
• Comparable to app-widgets on an Android device
• Get touch events from SmartWatch to take action
2012-06-12 15
SmartWatch – Control API
• You can control: - The entire screen - Screen state (on/off/auto) - Vibrator
• Frames rate ~6-7 FPS for full screen images
- Note to self – send partial updates!
• Get touch events and take action - Swipe (left, right, up, down) - Touch (press, release, long press) with coordinates
• The user uses twin tap or pinch to exit the extension
2012-06-12 16
SmartWatch – Control API lifecycle
Analog to Android activity lifecycle (subset)
Start: - User interaction - START_REQUEST intent
Pause: - Screen off - An extension with higher
priority needs preference
Stop: - User interaction - STOP_REQUEST intent
2012-06-12 17
SmartWatch – Sensor API
• 3-axis accelerometer
• Android sensor data format
• LocalSocket
2012-06-12 18
SmartWatch – API intents and utility class mappings
• From SmartWatch: – CONTROL_START_INTENT – CONTROL_TOUCH_EVENT_INTENT – etc...
– LocalSocket
@Override public void onStart() { // Start stuff } public interface AccessorySensorEventListener { public void onSensorEvent(/…/); }
• To SmartWatch: – CONTROL_DISPLAY_DATA_INTENT – CONTROL_VIBRATE_INTENT – etc...
protected void showImage(final int resourceId); protected void startVibrator(int onDuration, int offDuration, int repeats);
2012-06-12 19
Smart Extension SDK
http://sonymobile.com/developer
Sony Xperia Extensions EDK 2.0
2012-06-12 20
Smart Extension SDK
Sample code
Documentation including JavaDoc
Emulator to run on your phone
Developer focused White papers
Getting started document
2012-06-12 21
SDK Sample code
• Samples for all types of extensions – run as is!
• Tutorial or template – just remember to change package names!
• Music player and 8 puzzle game now also available
2012-06-12 22
SmartWatch – Google Play
Include in Google Play description:
LiveWare™ extension for SmartWatch LiveWare™ extension for Smart Wireless Headset pro
2012-06-12 23
Inspiration from Google Play!
2012-06-12 24
Inspiration from Google Play!
2012-06-12 25
Inspiration from Google Play!
2012-06-12 26
Contact
Contact information: Jerker Lindgren Götsten [email protected] Support: - http://sonymobile.com/developer - Stack Overflow – use “SmartWatch” tag
2012-06-12 27
SmartWatch pitch
Pitch your app idea, get a SmartWatch!
2012-06-12 28
SmartWatch – an opportunity!
SmartWatch is gaining momentum!
See you soon on Google Play!