|onRetainNonConfigurationInstance() and ServiceConnection||Mark Murphy||9/23/10 6:18 PM|
In an earlier thread on this group, it was pointed out that it is safe
to pass a properly-constructed AsyncTask object from an old activity
to a new one via onRetainNonConfigurationInstance(), so we can keep
the background work running when the device changes orientation, dock
What about ServiceConnection?
In other words, if an activity is bound to a service, is there a way
Since ServiceConnection is just an interface, it should be fairly
_The Busy Coder's Guide to Android Development_ Version 3.1 Available!
|Re: [android-developers] onRetainNonConfigurationInstance() and ServiceConnection||Dianne Hackborn||9/23/10 6:42 PM|
If you bind with the application context, it will be fine.
Android framework engineer
Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them.
|Re: [android-developers] onRetainNonConfigurationInstance() and ServiceConnection||Mark Murphy||9/23/10 6:52 PM|
On Thu, Sep 23, 2010 at 9:42 PM, Dianne Hackborn <hac...@android.com> wrote:
Awesome -- thanks!