An example of using singleton in Java with Android