If you're still having a problem, can you make a small program that compiles and executes and demonstrates the problem.
Type: Posts; User: Norm
If you're still having a problem, can you make a small program that compiles and executes and demonstrates the problem.
Possibly. Read the API doc for the class to see if it can have listeners.
What value? Set or unset?
If getChecked() never returns true, then "this.mChecked" must always be false when getChecked() is called.
Try debugging your code by adding println("mChecked=" + mChecked); at every place...
How is does the code see if "it is checked"?
How does it see the name?
Where is cbla given a value? Does the code only give it a value one time?
You don't need to make all the variables and methods static. If you use the Singleton pattern, you only need a static varible to hold a reference to the one instance of the class and a static method...
If the checkboxes are in prefWindow, the only way to access them is by having a reference to prefWindow. You wouldn't need to create a new instance. You would need a way to get a reference. Passing...
class prefWindow {
// Define bunch of checkboxes
mCheckbox cb1 = ...
// Get the status of our cb1
public boolean get_cb1() {
return cb1.getStatus();
}
..