android-wear case study presentation @ GDG - Singapore.
*** Its the shorter version of my android-wear presentation catered for Google Developer Groups Singapore, you can find the detailed version here: http://goo.gl/JdkYas ****
BreakTimer, break reminding android-wear app was our 1st experiment with the shiny new android extension. It sits silently on your wrist and remind you to take break if it notice that you have been typing for very long. Helps you to avoid problems related to prolonged sitting like repetitive strain injury (RSI)
2. Agenda
• Introduction to our learning android-wear app:
Break Timer
• Learning Journey
• The app idea
• Coding tips
• Problems we faced during development
3. Learning Journey
• The app idea
• Coding tips.
• Problems we faced during development.
4. 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.
5. 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.
9. Learning Journey
• The app idea
• Coding Tips
• Problems we faced during development.
10. Coding Tricks
• Use common module for keeping models and constants.
11. Coding Tricks
• Should implement some logic on both mobile
and watch to handle disconnect issues
12. Coding Tricks
• Embedded Activity in notification with different sizes
Notification mNotification = new NotificationCompat.Builder(context)
.setSmallIcon(R.drawable.appicon)
…..
.setCustomSizePreset(NotificationCompat.WearableExtender.SIZE_FULL_SCREEN)
.setDisplayIntent(displayPendingIntent).build()
13. Learning Journey
• The app idea and android-wear UX
• Coding Tricks
• Problems we faced during development
14. Problems faced
• Permissions
• apk cache
• Problems with emulators
• No accelerometer
• Round emulator is not as good as square counter
part.
15. 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
16. 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
17. Problems faced
• Round emulator is not as good as the
square counter part.
Round emulator being
displayed as square
18. 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.