Android和RESTful服务 [英] Android and RESTful services

查看:161
本文介绍了Android和RESTful服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在<一个href="http://$c$c.google.com/intl/sv-SE/events/io/2010/sessions/developing-RESTful-android-apps.html"相对=nofollow>维吉尔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.

这篇关于Android和RESTful服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆