Fresh news from Droid zone
Hello, you're reading Infinum Android Sweets, bringing you the latest Android related news straight to your inbox every week.
Dagger Party Tricks: Refactoring
This is part 3 of a blog series of a talk I gave at Droidcon NYC and Londroid earlier this year. Dagger has a steep learning curve that frequently leaves developers not wanting to explore it further once they've integrated it. This series attempts to show some neat "party tricks" and other clever Dagger patterns to inspire more advanced usage.
Read More
Articles
Kotlin is justifiably lauded for its language features compared to today’s Java. It has constructs which allow expressing common patterns with more concise alternatives. An overused example in every intro-to-Kotlin talk or blog post is comparing a Java “POJO” to a Kotlin data class.
OkHttp uses synchronized as an allocation free mutex. Our concurrency model is tricky enough that we’ve documented the rules! And if we forget the rules, we also use runtime assertions to catch mistakes.
In this tutorial, you’ll learn step by step how to white label your Android apps by using Android flavors and build variants.
An exploit has been found regarding Google's default camera app along with numerous other camera apps from different vendors.
A ContextThemeWrapper allows us to modify or overlay the theme of another context. Let’s have a look at how we’d do this, using an alert dialog as an example.
Libraries and useful resources
LiquidSwipe is a viewpager library that can be used to make awesome onboarding designs.
🔥 A low-cost Android screen adaptation solution.
Videos/Podcasts
App Modularization has plenty of benefits and a lot of Android devs today are starting to modularize their android app. A common problem though that most folks will start to run into is – how do you manage your database objects in these modules? do you create a single module with all your database dependencies (modularize by layer), do you do the right thing and modularize by feature so each module has it’s own database file etc.?
Class of the week
This class models the edges and corners of a shape, which are used by MaterialShapeDrawable to generate and render the shape for a view's background.
Beyond Android
There are many different types of developers. I’ve encountered and had the pleasure to work with a hugely diverse crowd of people with varying skills and experiences. Different people have different goals in life and career. Some people in tech have drive to move forwards, become a better developer and to take the next step in their career (no, I don’t believe that a developer should become a manager if they’re great at their job). This post is written with people with passion in mind, to possibly help them to move forward and to focus on their career.