I have literally just found the problem. I wasn't creating a new check box 
inside the loop. I had just created it once before entering the loop  instead- 
oops. Thanks for answering



Pam




----- Original Message ----- 
  From: TreKing 
  To: [email protected] 
  Sent: Thursday, December 15, 2011 12:53 PM
  Subject: Re: [android-developers] Adding checkbox


  Did you read the log?


  On Thu, Dec 15, 2011 at 5:37 AM, Knutsford Software 
<[email protected]> wrote:

    12-15 11:21:58.510: E/AndroidRuntime(1136): 
java.lang.IllegalStateException: The specified child already has a parent. You 
must call removeView() on the child's parent first.


  How many times have you created a new CheckBox?
  Now how many times are you adding a check box to the layout?

  
-------------------------------------------------------------------------------------------------
  TreKing - Chicago transit tracking app for Android-powered devices



  -- 
  You received this message because you are subscribed to the Google
  Groups "Android Developers" group.
  To post to this group, send email to [email protected]
  To unsubscribe from this group, send email to
  [email protected]
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to