On Fri, Jan 20, 2012 at 2:01 PM, Nick Parker <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
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

Reply via email to