Code for android application