Re: [android-developers] Re: java.lang.IllegalStateException: Fragment MyFragment is not currently in the FragmentManager

2012-08-16 Thread Marina Cuello
I had the same trouble and fixed it by a workaround: I check the fragments are loaded and only store those on the Bundle. From time to time it fires an Exception but it works anyway. @Override protected void onSaveInstanceState(Bundle instanceStateToSave) {

[android-developers] Re: java.lang.IllegalStateException: Fragment MyFragment is not currently in the FragmentManager

2012-08-13 Thread Mor G.
There's a solution in stackoverflow: http://stackoverflow.com/questions/11296411/fragmentstatepageradapter-illegalstateexception-myfragment-is-not-currently but it doesn't seem to be helping me, since I'm not instantiating my fragments as he did, but maybe it'll help you. I'm still looking for

[android-developers] Re: java.lang.IllegalStateException: Fragment MyFragment is not currently in the FragmentManager

2012-06-14 Thread Alexandros
Someone please? On Sunday, June 3, 2012 10:50:33 AM UTC+3, Alexandros wrote: Hello everyone, Some time ago, I updated my application to use the support v4 library in order to use the ViewPager control. The initial version of the application used the FragmentPagerAdapter, however, because