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