Re: [android-developers] Reg: Error in adding View to a ViewGroup

2009-11-25 Thread Mark Murphy
> I am trying to add a view to a viewgroup but I am getting the following > error when I run the application > > Error: > E/AndroidRuntime( 570): java.lang.IllegalStateException: The specified > child already has a parent. You must call removeView() on the child's > parent > first. Don't try addi

[android-developers] Reg: Error in adding View to a ViewGroup

2009-11-25 Thread sathya subbiah
Hi, I am trying to add a view to a viewgroup but I am getting the following error when I run the application Error: E/AndroidRuntime( 570): java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first. Code: public class Exam