Code for the android app