Android和RESTful服务Android、RESTful

2023-09-14 23:01:27 作者:再好的网名也败在备注上i

在维吉尔Dobjanschi在谷歌我谈 / O,他提​​到了使用服务做了取,然后用回调来通知活动这个时候完成。他从来没有进入就如何实现这一回调,我似乎无法找到任何关于这一主题的任何地方有帮助的细节。

In Virgil Dobjanschi talk during Google I/O he mentioned using Services for doing the fetching and then using a callback to notify the Activity when this was completed. He never went into specifics on how to implement this callback and I can't seem to find anything helpful on this topic anywhere.

我觉得他说,你没有需要实现的结合呢?

I think he said that you didn't need to implement binding at all?

任何线索?

推荐答案

查看谷歌I / O 2010的应用程序。的它使用他所指的格局。它采用方案2,从CommonsWare的答案。

Check out the Google I/O 2010 app. It uses the pattern he was referring to. It uses Option #2 from CommonsWare's answer.