Skip to content Skip to sidebar Skip to footer

Android Exception "the Specified Child Already Has A Parent..."

I m getting exception as follow. Can anybody help me? 06-16 11:32:48.237: ERROR/AndroidRuntime(9223): java.lang.IllegalStateException: The specified child already has a parent

Solution 1:

A view can only have a single parent. The view that you are adding (I am guessing re-using) is already part of another view hierarchy. If you really want to reuse it (I would suggest you probably dont) then you have to detach it from its parent in its existing view hierarchy.

whatever is returned by ECGField.get(0) is already in a view hierarchy.

Post a Comment for "Android Exception "the Specified Child Already Has A Parent...""