开发者

Content provider usage for search results

开发者 https://www.devze.com 2023-02-09 20:34 出处:网络
Folks, I have a dilemma how to architect Android application that communicates with external RESTfull service (actually OData service). The se开发者_高级运维rvice:

Folks,

I have a dilemma how to architect Android application that communicates with external RESTfull service (actually OData service). The se开发者_高级运维rvice:

  • Returns list of folders
  • Returns documents in a folder
  • Performs search based on search options and search query
  • etc...

After the presentation "Developing Android REST client applications" I was convinced to implement it using Content Provider that wrapps my HTTP calls. Basically I should synchronize local DB and remote resources. My question is how to implement search functionality. On a server side search is a function that returns objects (JSON). Should I save these objects in a local DB? How to use pagination in this case?


http://code.google.com/p/parleys-android-nextgen/

An Android Project that covers your problem using the code of the official Google IO App (IOShed) but using JSON than XML.

0

精彩评论

暂无评论...
验证码 换一张
取 消