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 contai
On Fri, Jan 20, 2012 at 2:01 PM, Nick Parker 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
Hi Mark,
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
On Fri, Jan 20, 2012 at 12:11 PM, Nick Parker wrote:
> I am using setRetainInstance(true) with all of the Fragments.
OK, I'm perhaps barking up the wrong tree then.
> I am actually
> new'ing up the detail fragment on the invocation of the
> onContextItemSelected() so there is no old reference ha
Hi Mark,
I am using setRetainInstance(true) with all of the Fragments. I am actually
new'ing up the detail fragment on the invocation of the onContextItemSelected()
so there is no old reference hanging around. After looking a bit further, I am
starting to wonder if it has something to do wit
On Fri, Jan 20, 2012 at 11:39 AM, Nick Parker wrote:
> I am not exactly sure what you are suggesting. I do call
> registerForContextMenu inside the onActivityCreated() method and super, but
> nothing else. Are you suggesting I do something there?
I am suggesting that wherever you were calling g
Hi Mark,
I am not exactly sure what you are suggesting. I do call
registerForContextMenu inside the onActivityCreated() method and super, but
nothing else. Are you suggesting I do something there? The invocation of the
to perform the FragmentTransaction replace occurs from the
onContextIte
On Fri, Jan 20, 2012 at 11:04 AM, Nick Parker wrote:
> I was initially just calling getActivity() from the ListFragment, however
> that was returning null.
Then you were doing the work in too early of a lifecycle method, most
likely. Try sliding to a slightly later one (e.g.,
onActivityCreated())
Hi Mark,
Thanks for the quick response, I've included my comments inline:
Nick Parker
On Friday, January 20, 2012 at 9:49 AM, Mark Murphy wrote:
> On Fri, Jan 20, 2012 at 10:41 AM, Nick Parker (mailto:npar...@zetetic.net)> wrote:
> > I am using the Google compatibility library for Fragments.
On Fri, Jan 20, 2012 at 10:41 AM, Nick Parker wrote:
> I am using the Google compatibility library for Fragments. I have a
> ListFragment that upon selection from a context menu performs a fragment
> transaction replace to display another fragment. This operation works fine,
> however following
I am using the Google compatibility library for Fragments. I have a
ListFragment that upon selection from a context menu performs a fragment
transaction replace to display another fragment. This operation works
fine, however following a screen rotation the the commit operation fails
giving th
11 matches
Mail list logo