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.
App size reduction at Microsoft SwiftKey
Last year we worked on making our Android app smaller, learnt a lot about how to do this and achieved great results. We’d like to take you through our journey, from when we started analysing our app to the changes we made and the improvements we got. We’re sharing this with you in the hope that some of the techniques we describe are applicable for you and your apps too.
Read More
Kotlin coroutines introduced the suspend modifier in our daily life as Android developers. Are you curious to see what’s happening under the hood? How is the compiler transforming the code to be able to suspend and resume the execution of coroutines?
This article talks about the benefits fakes provide over mocks in testing software. Fakes lead to better API and readable/robust tests.
As an Android developer you might not be too familiar with assert. This is because every Android app runs on a VM which is forked from a shared “zygote” process which has assertions disabled. Thus, even if you put an assert in your code, there is no way to actually enable it. So why bother talking about it? Well it turns out they’re about to become useful on Android for the first time!
RecyclerView is one of the main building blocks of Android user interfaces today. It’s more capable and flexible than its ListView predecessor but this also leads to more complexity and new problems.
Libraries and useful resources
Multiple samples showing the best practices in the user interface on Android.
Extensive Open-Source Guides for Android Developers.
In this episode, Chet talks with Sumir Kataria and Rahul Ravikumar from the Android Toolkit team about Work Manager! Tune in to learn about work manager, an AndroidX library for deferrable background work, and recent changes such as on demand initialization, new lint checks, and more!
Class of the week
This class provides access to the blob store managed by the system. Apps can publish and access a data blob using a BlobHandle object .
Beyond Android
The key idea is that there is a big overlap between secure code and good software design. Code that is strict, clear and focused will be easier to reason about, and will have fewer bugs. This in turn makes it less vulnerable to attacks. This is easy to say, but Secure by Design is full of techniques for how to actually do this. Here are the ideas from the book that I liked the most.