DroidForums.net is the original Verizon Android Forum! Registered Users do not see these ads. Please Register - It's Free!
Results 1 to 2 of 2

Thread: Help needed with checkboxes

  1. Droid Newbie
    Shaun1203's Avatar
    Member #
    293251
    Join Date
    Sep 2012
    Posts
    2
    Phone
    Samsung Galaxy S2
    #1

    Help needed with checkboxes

    Hi,

    I need some help with checkboxes. I want to be able to check a box and save the state of it so that when i close the app and then open it again, the box is still checked.

    Any help would be appreciated.
  2. Sponsor
    DF Advertising
    Join Date
    Nov 2008
    Location
    DroidForums.net
     
     
     
     
  3. Droid Newbie
    MartinZ's Avatar
    Member #
    302108
    Join Date
    Oct 2012
    Posts
    2
    Phone
    Desire Z
    #2
    Use the isChecked() function of the checkbox.

    Find your checkbox by
    MyCheckbox = (CheckBox) findViewById(R.id.your_checkbox_id);

    You can save the state in the sharedpreferences or an other place.
    SharedPreferences | Android Developers

Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Similar Threads

  1. Go SMS- Help needed!!
    By shastrich2005 in forum Droid Themes
    Replies: 7
    Last Post: 02-18-2012, 08:56 PM
  2. D-Inc Help Needed
    By beasleybiz in forum Droid Hacks
    Replies: 2
    Last Post: 06-30-2011, 12:56 PM
  3. Help needed!!!!!
    By kylelord87 in forum Android Applications
    Replies: 4
    Last Post: 03-15-2011, 09:06 AM
  4. Serious Help Needed
    By King1126 in forum Liberty ROM DX
    Replies: 4
    Last Post: 02-02-2011, 01:38 PM
  5. help needed please
    By Abkelley in forum Cyanogenmod
    Replies: 13
    Last Post: 01-28-2011, 02:41 AM
Find us on Google+