Here is another blog post I wrote at Stable|Kernel. It’s about using custom views as menu items in the toolbar. Check it out here.
Another quick post over at Stable Kernel’s blog about checking for network connectivity before firing of a web request. Read more here and feel free to comment.
Here’s a recent blog post of mine about using loading indicators in conjunction with RxJava. Check it out. Feel free to comment there.
Recently I’ve spent time trying to answer questions from students and Stack Overflow users. I have found many questions about what to put in an Activity, how to get access to a Context when you need one, how to do some async thing on the UI thread, why use Fragments, etc. Each question is basically “how do I do this thing that Android makes difficult?”.
Inevitably most answers by others provide hacky solutions that, while they technically work, should be ignored. These questions represent a fundamental misunderstanding about one or more class within the Android framework. The right answer to these questions is usually “you’re misunderstanding what this class is used for so you shouldn’t be doing this thing in the first place.”
I continued my discussion about Testing on Android by talking about product flavors on Big Nerd Ranch’s blog.