且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何创建Android应用程序的速度和评论系统?

更新时间:2023-02-06 22:43:36

这是一个pretty的广泛的问题,但我会用这样的方法:

This is a pretty broad question, but I would use an approach like this:

Android客户端< - > (REST风格)的Web服务(例如PHP)LT; - >数据库(如MySQL的)

最后两项,当然,驻留在此体系结构的服务器端。

The last two items, of course, reside server side in this architecture.

流量将基本由用户作出评价或评论,一个HTTP请求发送到Web服务,Web服务执行,增加了评级和评论到数据库中,这导致的结果,一个SQL语句HTTP响应,您可以更新您的Andr​​oid客户端。

The flow would essentially consist of the user makes a rating or comment, an HTTP request is made to your web service, the web service executes a SQL statement that adds the rating or comment to the database, which leads to a result and an HTTP response from which you can update your Android client.

我首先建议寻找到一般的REST风格的Web服务和Web服务,如果你不熟悉他们。

I would first suggest looking into RESTful web services and web services in general if you're unfamiliar with them.