ing. Andrea Maglie

A simple splash screen in Android

Splash screens are not so popular in Android development. But wait: now Google started to put splash screens in its apps??? Take a look at Google Drive app for example. Does it mean that now we have a new standard? This is not the right post to talk about if splash screen in Android is good or bad. Let’s think only about code: implementing a sp... Read more

RxJava: convert a listener into an Observable

In Java it’s common to work with listeners. And if you work with RxJava, you will prefer to use an Observable instead of listeners. But what if you have to deal with a library and you cannot change the source code? There’s a simple way to create an Observable around a listener. Suppose we have an interface ValueUpdateListener and an object Val... Read more

ReactiveX, RxJava and RxAndroid - where to start

The next library you will learn should definetly be ReactiveX. What is ReactiveX? From the website: ReactiveX is a combination of the best ideas from the Observer pattern, the Iterator pattern, and functional programming. (But it’s a lot more.) The key concept to start with ReactiveX is: think reactive programming as operating on a stream of ... Read more

Don't waste your time coding - part 2

You can find the first part of this article here Automatic code formatting and import organizing Code styling is important. A well formatted piece of code becomes more readable and more comprehensible. But sometimes trying to keep the code formatted can be negative: you lose your time and your focus. You will soon start to count the number of ... Read more

Access Storage Framework and the URI permissions nightmare

I’ve been working with the Access Storage Framework introduced with Android KitKat, a feature that I’ve been waiting for a long time. Everything seemed to be alright, quite easy to implement, until I faced a strange issue. Once the file has been selected by the user, I wanted to store the file’s URI and re-open that URI the next time applicati... Read more