Well, for now I surrounded 

pager.setAdapter(adapter);

with a try - catch. Happens mostly when the screen is not visible anymore, 
so it's not critical.

But it still would be good to understand it and be able to fix correctly. I 
was reading the source and as far as I remember, it was related with saving 
the fragment's state appropiatedly, the active fragment list and the 
fragment manager... but it's quite dense and there should be better 
documentation on this...


On Sunday, August 5, 2012 5:25:37 PM UTC+2, hostj2me wrote:
>
> I am also seeing this issue. 
>
> java.lang.IllegalStateException: Fragement no longer exists for key f451: 
> index 2
> at 
> android.support.v4.app.FragmentManagerImpl.getFragment(FragmentManager.java:534)
> at 
> android.support.v4.app.FragmentStatePagerAdapter.restoreState(FragmentStatePagerAdapter.java:208)
> at android.support.v4.view.ViewPager.setAdapter(ViewPager.java:374)
>
> Have you found a solution?
>
>
>

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