Have you ever needed to share code between different branches? More specifically across Pull Requests? And what if those Pull Requests were started or aimed at different branches? (maybe master and.. releaseXX, making it difficult if those branches are a bit diverging at the moment) One option would be, if changes are simple, copy changes […]

Android, Retrofit2, OkHTTP3 and an easy cache implementation
In a recent development, a simple Android App which should get data from a REST API, one of the requirements was: Cache API requests for 1 hour. I chose retrofit as my REST Client, and I knew it provided cache mechanisms out of the box (by OkHTTP3). Following this useful tip, it looked like a long hanging fruit (having a […]

4 ways the Android Platform changed that can teach us how to be better Engineers
Android changed a lot since its first release, for both users and developers. Some changes were about user interface, others about software architecture and design, but all have a something in common, we can learn a lot about the decisions Google engineers and executives made. Google Play Services There was a rumor about a […]

Thinking dp as centimeters (or inches)
The title may be a little misleading, because in fact dp can’t be thought as a unit of (real world) measurement, it is a unit of measurement! Following the definition of dp (other for designers): Density-independent pixel (dp) A virtual pixel unit that you should use when defining UI layout, to express layout dimensions or position […]

A Bugs Life I
Bugs, errors, bad practices, all of them happen in real life. Here we have some pics of the ones I could see and catch..

Java snippet for literal arrays
In need of lots of hardcoded literal arrays? Even if not considered a good practice, maybe you are unit testing array receiving methods so, is there a direct way without having to do the classic new Type[]{… thing? View the code on Gist. If needed in more places, just make those methods static (and in […]