Video: https://www.youtube.com/watch?v=zImbxlqptBQ
Designers and developers have been afraid of the variety of Android flavors for way too long. Android borrows a lot of concept from the web, and we can use the same techniques to cater to the different OS versions and form factors.
Be responsive. Forget about absolute coordinates. Embrace the relative, use resource folders to differentiate among screen sizes, much like CSS media queries.
Be progressive. Take advantage of the latest Android functionalities, but gracefully fall back to the basics when you are on older OS versions. Remember the days when not all browsers have javascript?
Best of all, you don’t need a huge team to do this. I run a one-person company, and I will show you how I applied these techniques to my app Monkey Write.
71. @chiuki@chiuki
// Default value
int heapSize = 16;
// Detect OS version
int sdk = Integer.parseInt(Build.VERSION.SDK_INT);
// Progressive enhancement for newer devices
if (sdk >= Build.VERSION_CODES_ECLAIR) {
heapSize = getHeapSize(this);
}
Progressive
81. @chiuki@chiuki
360|AnDev Core Track
• Activities in the Wild: Exploring the Activity
Lifecycle
• Fragments: What are they good for
• Async Task, Threads, Pools and Executors
• Measure, Layout, Draw, Repeat: Custom Views
and ViewGroups
• A Practical Guide to Material Design
implementation for Android Developers
• Libraries I wish I knew about when I started
• Intro to iOS for Android developers