Code for android examples