Hi Heiko,
Pipeline.get(name, ..) is a method to return a PipeLoader (a Pipe wrapper using Loaders)
instead a Pipe.
Loaders[1] were designed for activities and fragments in order to cleanly handle
configuration changes that occur in Activites and Fragments. So, for service you need to
use a Pipe (Pipeline.get(name)) and AbstractCallback (or Callback)
[1]
http://developer.android.com/guide/components/loaders.html
--
Daniel Passos
On March 24, 2014 at 4:32:57 AM, Heiko W.Rupp (hrupp(a)redhat.com) wrote:
Hey,
[ this is with 1.3.1 ]
Pipeline.get(name, ..) allows to use Fragments and Activities as "callbacks".
What is the recommended way to use that inside a Service?
From looking at the code I think the logic inside LoaderAdapter
could accept the AbstractCallback as sort of "fallback" for
cases that are neither Activity nor Fragment.
Thanks
Heiko