Search:

Type: Posts; User: michaelz

Search: Search took 0.16 seconds.

  1. Replies
    16
    Views
    3,921

    Re: Checking the Status of a checkbox

    unset (false). That is the value it is initially set to
  2. Replies
    16
    Views
    3,921

    Re: Checking the Status of a checkbox

    It seems to get the value initially and it stays constant. Is there some way i can make a listener to catch checking events?
  3. Replies
    16
    Views
    3,921

    Re: Checking the Status of a checkbox

    I will post the code for the classes.

    Here is Checkbox

    public class Checkbox extends ListActivity {
    /** Called when the activity is first created. */

    private static...
  4. Replies
    16
    Views
    3,921

    Re: Checking the Status of a checkbox

    so i did


    private static CheckBoxifiedTextListAdapter cbla;

    and new method

    public static getCbla()
    {
    return cbla;
  5. Replies
    16
    Views
    3,921

    Re: Checking the Status of a checkbox

    Yes, there is only one instance at a time-the instance running in the onCreate() method of the Checkbox class. As you notice in the Checkbox class (i posted it above), I have a cbla. If I make this...
  6. Replies
    16
    Views
    3,921

    Re: Checking the Status of a checkbox

    In prefWindow I can get the status, but to access cb1 in another class it would be impossible without making an instance of prefWindow.






    public class Checkbox extends ListActivity {
    ...
  7. Replies
    16
    Views
    3,921

    Re: Checking the Status of a checkbox

    Well they're mCheckboxes (in android) and while I have public getters, I can only use them on an instance of a class. For example (the runner class is named Checkboxes)
    Checkboxes c = new...
  8. Replies
    16
    Views
    3,921

    Checking the Status of a checkbox

    Hello,
    I have essentially a preferences window with a bunch of boolean checkboxes. In another class, I need to check the status of these checkboxes (checked or unchecked), but I don't know how to do...
  9. Replies
    7
    Views
    1,957

    Re: SAX Parser will not add object to arrayList

    Thanks!! I fixed the problem. basically in the list method I put a parameter of type SimpleSAXParser3 sax


    public void list(SimpleSAXParser3 sax) throws Exception
    {
    XMLReader parser =...
  10. Replies
    7
    Views
    1,957

    Re: SAX Parser will not add object to arrayList

    Yes, the if statement is executed and addElement() is called (i tested it by putting a println in the addElement() method and it printed).
  11. Replies
    7
    Views
    1,957

    Re: SAX Parser will not add object to arrayList

    Even after I do this, I still get "nothings there" printed out.

    public static void main(String[] args) throws Exception
    {

    SimpleSAXParser3 simp = new SimpleSAXParser3();
    simp.list();...
  12. Replies
    7
    Views
    1,957

    SAX Parser will not add object to arrayList

    Hello, I'm trying to parse through XML and while I'm able to parse it, it will not add the final object to the arraylist. The if statement is still accessed though as I've tested it with println's,...
Results 1 to 12 of 12