模块化的Android异步网络请求:RoboSpice

jopen 11年前

RoboSpice是一个模块化的Android库能够让编写异步网络请求变得非常简单。它专门用于网络请求,通过使用Spring Android或者Google Http Client等扩展模块可支持REST请求。

模块化的Android异步网络请求:RoboSpice

RoboSpice的主要特性:

  • supports Android starting from SDK version 8 (Froyo / 2.2.x)
  • executes network requests asynchronously (in a background AndroidService)
  • supports REST out of the box (using Spring Android or Google Http Client).
  • is strongly typed ! You query webservices using POJOs and you get POJOs as request results.
  • enforces no constraints neither on POJOs used for requests nor on Activity classes you use in your projects
  • caches results in Json with both Jackson or Jackson2 or Gson, or Xml, or flat text files, or binary files, even using ORM Lite (still in beta)
  • notifies your activities (or any other context) of the result of the network request with respect to their lifecycles.
  • no memory leaks at all, like Android Loaders, unlike Android AsyncTasks
  • notifies your activities on their UI Thread
  • uses a simple but robust exception handling model
  • supports multi-threading of request executions
  • supports aggregation of different web services
  • is a full featured replacement for long running AsyncTasks even they are not related to networking.
  • is open source ;)
  • and tested (more than 160 tests)

项目主页:http://www.open-open.com/lib/view/home/1371547440578