Small snippets for android application