Transcript
Page 1: Break Timer: android-wear case study and development tips

Break Timerandroid-wear, break reminding app

Developed by:- Umair (https://plus.google.com/+UmairVatao/) - Meng (http://goo.gl/smQOsE)

Page 2: Break Timer: android-wear case study and development tips

Agenda • Introduction to our learning android-wear app:

Break Timer

• Learning Journey

• The app idea

• Coding tips

• Problems we faced during development

Page 3: Break Timer: android-wear case study and development tips

Learning Journey

• The app idea

• Coding tips.

• Problems we faced during development.

Page 4: Break Timer: android-wear case study and development tips

Break Timer: the app idea

Thinking for the wear

• Build something that doesn’t compete with phone but augment it!

• Context aware app with minimum interaction.

• we tried to step ahead to find the context thats available exclusive to watch.

Page 5: Break Timer: android-wear case study and development tips

Break Timer

Problem: If you use computer for 3-4 hours a day and sit continuously in a similar posture, you are at risk of RSI (Repetitive Strain Injury).

The Solution: Break Timer sits silently on your wrist and remind you to take break if you are typing for long intervals to avoid RSI. [Facebook counts!]

• Uses the accelerometer available on watch to see if you are continuously typing.

Page 6: Break Timer: android-wear case study and development tips

Break Timer

Page 7: Break Timer: android-wear case study and development tips

Break Timer

Page 8: Break Timer: android-wear case study and development tips

Break Timer

Page 9: Break Timer: android-wear case study and development tips

Learning Journey

• The app idea

• Coding Tips

• Problems we faced during development.

Page 10: Break Timer: android-wear case study and development tips

Coding Tricks

• Use common module for keeping models and constants.

Page 11: Break Timer: android-wear case study and development tips

Coding Tricks• Should implement some logic on both mobile

and watch to handle disconnect issues

Page 12: Break Timer: android-wear case study and development tips

Coding Tricks

Notification mNotification = new NotificationCompat.Builder(context)

.setSmallIcon(R.drawable.appicon) ….. .setCustomSizePreset(NotificationCompat.WearableExtender.SIZE_FULL_SCREEN) .setDisplayIntent(displayPendingIntent).build()

• Embedded Activity in notification with different sizes

Page 13: Break Timer: android-wear case study and development tips

Learning Journey

• The app idea and android-wear UX

• Coding Tricks

• Problems we faced during development

Page 14: Break Timer: android-wear case study and development tips

Problems faced• Permissions

• apk cache

• Problems with emulators

• No accelerometer

• Round emulator is not as good as square counter part.

Page 15: Break Timer: android-wear case study and development tips

Problems faced

• Permissions

• Include all permissions in your handheld device that you need to use in watch.

• Otherwise, it will not auto install the embedded apk

Page 16: Break Timer: android-wear case study and development tips

Problems faced

• APK cache

• After lot of try and error, we found the the android-wear companion app was somehow caching and pushing old apk to watch

Page 17: Break Timer: android-wear case study and development tips

Problems faced• Round emulator is not as good as the

square counter part.

Round emulator being displayed as square

Page 18: Break Timer: android-wear case study and development tips

recap• android-wear is android extension for wearables

• the major concept is to avoid distractions and keep the interaction with gadgets to minimum

• The android-wear is only meant to work with its companion device.

• Since wearables are attached to body, they can provide additional useful context related to user’s current physical state or health.

• Its easier to integrate android-wear functionality in your app, though you need to think wisely.

• The developer tools are still new and buggy and its sometime difficult to get solution to your coding issues.

Page 19: Break Timer: android-wear case study and development tips

Thank you

https://play.google.com/store/apps/details?id=com.media2359.breaktimer


Top Related