collect android sample code