snippet on Anroid Activity