code for a more complex android app