updated android sample based on latest changes