add sample code for android