9

onCheckchanged for sharedpref checkbox?

view full story
linux-howto

http://stackoverflow.com – I have a sharedpreference checkbox that when checked generates an ImageButton(or removes it) in a seperate activity. I have set up the checkbox(s) for on and off and they show up fine but they don't have the intended effect. I guess my my problem is that I do not know where to set up the onchecklistener and onclick etc for a sharedprefcheckbox, do I do it in the preference activity? or the activity I want the buttons to appear?I understand that in normal circumstance I would findViewById then box.setOnCheckChangelistener etc In the activity containing the checkbox',but I'm at a loss as to how (HowTos)