[guardian-dev] [Guardian-internal] stumped.

Nick Parker nparker at zetetic.net
Thu Feb 21 09:10:16 EST 2013


On 2/20/13 6:00 PM, Harlo Holmes wrote:
> yes, right, the NPE is now referring to the activity that is supposed to
> be set by the fragment's onAttach method (and not the view I referenced
> before.)
> 
> leads me to believe that because onDestroy is called, the fragments are
> not reinitialized in time before the fragment tries to access the assets
> owned by the main activity (which were previously set by onAttach)
> 
> i might have another trick up my sleeve if this is indeed the problem,
> but any help is much appreciated!
> 
> thanks,
> harlo

Hi Harlo,

Since you think it may be related to fragments not being reinitialized,
I'm curious if you would see a different behavior with using
setRetainInstance(true) within your fragments?


-- 
Nick Parker


More information about the Guardian-dev mailing list