hi,

> removeView() is on ViewGroup, IIRC.
oic..

> It sounds like you are calling setContentView(), supplying it a View
> that is already tied to your existing content view.
yup... any idea I can change the View that is already tied with existing
content view?? possible???



thanks for the reply.



wesley.

On Wed, Jan 7, 2009 at 9:09 PM, Mark Murphy <[email protected]> wrote:

>
> Wesley Sagittarius wrote:
> > hi all,
> >
> > I wanna to change view... but when I try to setContentView() when
> > wanna to change to second view... it has this error...
> >
> > 01-07 03:58:58.568: WARN/System.err(309): Caused by:
> > java.lang.IllegalStateException: The specified child already has a
> > parent. You must call removeView() on the child's parent first.
> >
> > I try to search for removeView() at Activity or ActivityGroup class...
> > I can't find any of this method...
>
> removeView() is on ViewGroup, IIRC.
>
> It sounds like you are calling setContentView(), supplying it a View
> that is already tied to your existing content view.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com
> _The Busy Coder's Guide to Android Development_ Version 1.9 Published!
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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