Hi Mark, I pieced together an example to post and eventually was able to reproduce the behavior I was seeing. I had a nested layout and within my layout I was including the initial list fragment. When I removed the fragment entry from the layout markup and subsequently added it to the container in the onCreate of the parent activity everything works smoothly now. Not sure if this is related to the compatibility library or not, but the issue seems to be resolved by loading the control dynamically. Thanks for your time.
Nick Parker On Friday, January 20, 2012 at 1:09 PM, Mark Murphy wrote: > On Fri, Jan 20, 2012 at 2:01 PM, Nick Parker <npar...@zetetic.net > (mailto:npar...@zetetic.net)> wrote: > > I am invoking the context menu selection from the ListFragment, which is the > > first fragment, not the new'ed up fragment. On the selection of the menu > > item from the context menu I want to perform the fragment transaction, which > > is failing following the screen rotation. Any ideas why the call to > > getActivity() would fail at that point, the lifecycle should have completed > > at that point, correct? Thanks. > > > > > Beats me, based on the descriptions in this thread. If you create a > sample project that demonstrates the issue, post it somewhere and I'll > take a peek at it. Or, if you try creating a sample project and can't > reproduce the problem, that'll help you narrow down where the > differences between the two projects are. > > Unfortunately, I don't have a ListFragment-with-context-menu sample in > my stable, otherwise I'd point you to it. > > -- > Mark Murphy (a Commons Guy) > http://commonsware.com | http://github.com/commonsguy > http://commonsware.com/blog | http://twitter.com/commonsguy > > Android 4.0 Programming Books: http://commonsware.com/books > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > (mailto:android-developers@googlegroups.com) > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > (mailto:android-developers+unsubscr...@googlegroups.com) > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en