I have 3 fragments in my activity : home , search , result. 

In home, there is a button to go to search and in search, there is a button 
to get result. 
It works fine when i click button search in home to go to search and press 
key back to go back from search to home.

After that, i click get result from search layout but when i go back from 
result layout to search layout by pressing back key, i got an exception : 

01-07 05:04:36.575: E/AndroidRuntime(1988): 
java.lang.IllegalStateException: The specified child already has a parent. 
You must call removeView() on the child's parent first.

i'm sure that fragment layout is not attach to root : 

View view = inflater.inflate(R.layout.list_result, container, false);

i'm really appreciated for your help!

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