Android sample code