updating sample example in android