Break Timer: android-wear case study and development tips
-
Upload
umair-vatao -
Category
Lifestyle
-
view
181 -
download
2
description
Transcript of Break Timer: android-wear case study and development tips
![Page 1: Break Timer: android-wear case study and development tips](https://reader034.fdocuments.us/reader034/viewer/2022051411/547a151bb37959652b8b48e1/html5/thumbnails/1.jpg)
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](https://reader034.fdocuments.us/reader034/viewer/2022051411/547a151bb37959652b8b48e1/html5/thumbnails/2.jpg)
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](https://reader034.fdocuments.us/reader034/viewer/2022051411/547a151bb37959652b8b48e1/html5/thumbnails/3.jpg)
Learning Journey
• The app idea
• Coding tips.
• Problems we faced during development.
![Page 4: Break Timer: android-wear case study and development tips](https://reader034.fdocuments.us/reader034/viewer/2022051411/547a151bb37959652b8b48e1/html5/thumbnails/4.jpg)
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](https://reader034.fdocuments.us/reader034/viewer/2022051411/547a151bb37959652b8b48e1/html5/thumbnails/5.jpg)
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](https://reader034.fdocuments.us/reader034/viewer/2022051411/547a151bb37959652b8b48e1/html5/thumbnails/6.jpg)
Break Timer
![Page 7: Break Timer: android-wear case study and development tips](https://reader034.fdocuments.us/reader034/viewer/2022051411/547a151bb37959652b8b48e1/html5/thumbnails/7.jpg)
Break Timer
![Page 8: Break Timer: android-wear case study and development tips](https://reader034.fdocuments.us/reader034/viewer/2022051411/547a151bb37959652b8b48e1/html5/thumbnails/8.jpg)
Break Timer
![Page 9: Break Timer: android-wear case study and development tips](https://reader034.fdocuments.us/reader034/viewer/2022051411/547a151bb37959652b8b48e1/html5/thumbnails/9.jpg)
Learning Journey
• The app idea
• Coding Tips
• Problems we faced during development.
![Page 10: Break Timer: android-wear case study and development tips](https://reader034.fdocuments.us/reader034/viewer/2022051411/547a151bb37959652b8b48e1/html5/thumbnails/10.jpg)
Coding Tricks
• Use common module for keeping models and constants.
![Page 11: Break Timer: android-wear case study and development tips](https://reader034.fdocuments.us/reader034/viewer/2022051411/547a151bb37959652b8b48e1/html5/thumbnails/11.jpg)
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](https://reader034.fdocuments.us/reader034/viewer/2022051411/547a151bb37959652b8b48e1/html5/thumbnails/12.jpg)
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](https://reader034.fdocuments.us/reader034/viewer/2022051411/547a151bb37959652b8b48e1/html5/thumbnails/13.jpg)
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](https://reader034.fdocuments.us/reader034/viewer/2022051411/547a151bb37959652b8b48e1/html5/thumbnails/14.jpg)
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](https://reader034.fdocuments.us/reader034/viewer/2022051411/547a151bb37959652b8b48e1/html5/thumbnails/15.jpg)
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](https://reader034.fdocuments.us/reader034/viewer/2022051411/547a151bb37959652b8b48e1/html5/thumbnails/16.jpg)
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](https://reader034.fdocuments.us/reader034/viewer/2022051411/547a151bb37959652b8b48e1/html5/thumbnails/17.jpg)
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](https://reader034.fdocuments.us/reader034/viewer/2022051411/547a151bb37959652b8b48e1/html5/thumbnails/18.jpg)
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](https://reader034.fdocuments.us/reader034/viewer/2022051411/547a151bb37959652b8b48e1/html5/thumbnails/19.jpg)
Thank you
https://play.google.com/store/apps/details?id=com.media2359.breaktimer