[aerogear-dev] [android] pipeline.get() and Services?
Daniel Passos
daniel at passos.me
Mon Mar 24 10:10:50 EDT 2014
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 at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20140324/4df3c34d/attachment.html
More information about the aerogear-dev
mailing list