This is a simple piece of code to explain the checkbox in android using onclick listener