Android code snippets that will be helpful to newbies