Ok, thanks.

On Jul 19, 8:45 pm, Mark Murphy <[email protected]> wrote:
> On Tue, Jul 19, 2011 at 5:32 AM, Zsolt Vasvari <[email protected]> wrote:
> > Am I missing something, or is it impossible to use
> > onRetainNonConfigurationInstance() with a FragmentActivity?
>
> IIRC, yes.
>
> > If so,
> > what can I do when I have some objects I need to retain, but I cannot
> > save them to the activity state?  In particular, I have running tasks
> > I need to connect my activities to.
>
> If the running tasks or other objects more properly belong to a
> fragment, have the fragment manage them and use setRetainInstance() to
> keep those fragment instances between configuration changes.
>
> Otherwise, I think the expectation is that you create a no-UI fragment
> that manages those objects, which is part of your activity and on
> which you use setRetainInstance().
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Warescription: Three Android Books, Plus Updates, One Low Price!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to