开发者

Android - Rails communication

Given the lack of information on the web ask a question: I'm going to create an application in Android, the use of a database application Rails. For this I need a manual session. So if anyone has a ready example / tutorial showing communication android-rails using session, or is ab开发者_JAVA百科le to share your knowledge on this subject?


Rails 3 resources use RESTful APIs by default. Define a supported format (XML or JSON) in your Rails app and just make REST calls from your Android client.

There should be no need for you to be trying to manipulate the database directly from your Android client. That will skip all the validations and before_saves you have set up in your Rails app.

Use REST and you should be fine.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜