Coding the android java code