Android 中的 RestKit?

发布于 2024-12-09 12:12:07 字数 275 浏览 1 评论 0原文

我在ios中使用了 restkit 框架。它非常强大,提供缓存等功能。我正在寻找类似的框架是否可以在android中使用?

我遇到了一个名为 restlet 的框架。但没有找到任何可以使用的样本。

是否有任何框架可以实现相同的目的,用于缓存来自休息服务的数据?另外有人可以指导我找到有关 android 中的 Restlet 的好教程吗?

谢谢

I have used restkit framework in ios. Which is very powerful and provides features like caching and all. I am looking whether a similar framework is available in android?

I came across a framework called restlet. But didnt find any samples to work with.

Is there any frameworks out there for the same, for caching data from rest services? Also could some one direct me to good tutorials for restlet in android?

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

古镇旧梦 2024-12-16 12:12:07

此外,还有第一个涵盖 Android 版 Restlet 版本的应用程序教程:
http://restlet.org/learn/guide/2.2/简介/第一步/首次应用

In addition, there is this first application tutorial covering Restlet edition for Android:
http://restlet.org/learn/guide/2.2/introduction/first-steps/first-application

飘逸的'云 2024-12-16 12:12:07

有一个示例可以使用:

http://restlet.org/ learn/guide/2.2/introduction/first-steps/first-application

它应该可以解决您的问题

There is a sample to work :

http://restlet.org/learn/guide/2.2/introduction/first-steps/first-application

It should solve your problem

年少掌心 2024-12-16 12:12:07

我不会称其为框架,但有一个名为 Robospice 的库,支持缓存休息调用。

以下是他们在网页上发布的描述:

RoboSpice 是一个模块化的 Android 库,可实现异步写入
长时间运行的任务很容易。它专门处理网络请求,
支持缓存并提供开箱即用的 REST 请求
扩展模块

I wouldn't call it a framework, but there is a library called Robospice that supports Caching Rest Calls.

Here is the description they posted in their webpage:

RoboSpice is a modular android library that makes writing asynchronous
long running tasks easy. It is specialized in network requests,
supports caching and offers REST requests out-of-the box using
extension modules

在风中等你 2024-12-16 12:12:07

尝试改造。这很容易,有大量可用的定制。

它还具有可以与其配对的 OkHttp

另请查看此SO链接。它将 RetrofitAndroid AsyncTasksVolley 进行了比较。就速度而言,Retrofit 轻而易举地获胜。

Give Retrofit a shot. It's easy with plenty of customization available.

It also has OkHttp that can pair with it.

Also check out this SO link. It compares Retrofit to Android AsyncTasks and Volley. As far as speed goes, Retrofit wins hands down.

我很OK 2024-12-16 12:12:07

我认为 Spring for Android 中包含的 RestTemplate 是一个很好的解决方案: http://static.springsource.org/spring-android/docs/1.0.x/reference/html/rest-template.html

有一本书提供了教程:http://www.packtpub.com/spring-for-android-starter/book

与具有 Core Data 支持的 Restkit 不同,如果您想将 Android Spring REST 客户端插入本地 sqlite 数据库,您仍然需要找到单独的解决方案。应该可以将 http://greendao-orm.com/ 与 Spring REST 结合使用客户。

I think the RestTemplate included in Spring for Android is a good solution: http://static.springsource.org/spring-android/docs/1.0.x/reference/html/rest-template.html

There is a book that provides a tutorial: http://www.packtpub.com/spring-for-android-starter/book

Unlike Restkit which comes with backed in Core Data support, you would still have to find a separate solution if you want to plug your Android Spring REST client into your local sqlite db. It should be possible to use something like http://greendao-orm.com/ in connection with the Spring REST client.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文