I have written a very easy CheckBox Example code. You can checkout code @
svn checkout http://my-android-ui-examples.googlecode.com/svn/trunk/ my-android-ui-examples-read-only
Project name is: CheckBoxExample
But after clean build and deploying in real android mobile, what I am seeing is that :
First time I have to click twice to get the action done. Next time onwards it is only one click which is doing the desired work.
Could you please let me know what can be the reason for this.
With regards
Sudipta Deb.
You should be using an
onCheckedChangeListenerto properly listen forCheckBoxchanges.I rewrote your activity to implement these and properly set the
onClickof your button..Remove the onClick declarations in your XML file