13
Dissecting Android Wear 24 th June 2014 Nanik Tolaram naniktolaram.com plus.google.com/+NanikT [email protected]

Dissecting Android Wear

Embed Size (px)

Citation preview

Page 1: Dissecting Android Wear

Dissecting Android Wear

24th June 2014Nanik Tolaram

naniktolaram.complus.google.com/+NanikT

[email protected]

Page 2: Dissecting Android Wear

Thank You !

Page 3: Dissecting Android Wear

About Customising Full Android stack and

developing apps

Hardware ARM – Freescale/AmlogicX86 – AMD / IntelTablet/Media Player form factor

Hardware / Kernel Tinkerer

Page 4: Dissecting Android Wear

Questions

How the whole thing works ?

Why is it so special ?

goo.gl/raAhNx (blog post)

Page 5: Dissecting Android Wear

Which Layer ?

Page 6: Dissecting Android Wear

Wear Emulator KitKat 4.4.x Stack

Run on ARM architecture

Socket Communication (via adb)

Page 7: Dissecting Android Wear

Android Wear Preview App

• For device communication

• Bridging App to Wear Emulator

• Future – part of Android stack (?)

• Rely on Notification Service

• goo.gl/tCI2kx (Play Store)

Page 8: Dissecting Android Wear

Notification Flow

Android App (Gmail,Phone, SMS)

NotificationListener(android-wear-preview.apk)

Android Notification System

Bluetooth

Android Wear Device

Notifications passing and sorting

Push and Notify Mechanism

Page 9: Dissecting Android Wear

Notification Flow

Page 10: Dissecting Android Wear

RecipeWear Demo

1

2

3

1 android.support.v4.app.NotificationCompat.NotificationCompat.Builder(Builder class to build notification message)

android.preview.support.wearable.notifications(Wear specific notification builder)

2

NotificationManager(Service) call to initiate notification function3

RecipeService.java

Page 11: Dissecting Android Wear

App Library Update SDK to API 19

extras/android/support/v4/android-support-v4.jar

android.preview.support.wearable.notifications package

WearableNotifications, RemoteInput and NotificationsUtil

Page 12: Dissecting Android Wear

SDK for Wear Coming soon ! (speculation around I/O 2014) FeaturesCustom Card LayoutData & Action between device and wearableRealtime sensor data display on wearableApp handler for voice action eg: Ok Google, Take note, Ok Google, Record Conversation, etc

Page 13: Dissecting Android Wear