如何创建Android应用程序的速度和评论系统? [英] How to create a rate and comment system for android app?
问题描述
我想创建一个汇率制度使用Java的Android应用程序。
I want to create a rate system for an android application using java.
香港专业教育学院搜查四周,还没有发现太多有关这在网络上。
Ive searched around and havent found much on the web concerning this.
什么我需要做的建立或开始构建一个汇率制度的Android应用程序。
What do i need to do to build or get started building a rate system for a android application.
如Android市场。用户被允许离开意见和速率的应用程序。
Such as the android market. The user is allowed to leave comments and rate a app.
我要实现相同的概念,除了有能力只是速率或投了一个对象,在我的应用程序。
I want to implement the same concept except with the ability just to rate or vote up a object in my application.
有没有人实现过?
在这方面的一些指导将是非常有益的。
Some guidance on this would be very helpful.
感谢
推荐答案
这是一个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响应,您可以更新您的Android客户端。
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.
这篇关于如何创建Android应用程序的速度和评论系统?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!