androidrating-system

RatingBar android question


I am really new in android programming. My question is how does RatingBar actually work? I want to make an app which contain RatingBars on it, and whenever the user rate it like 4 stars, I want the other user of my app too see it. How can I accomplish this? Please help me, I would really appreciate it a lot.


Solution

  • For doing this you need a server. When user1 rates with score of 4, then your application posts the score (HTTP POST) to your server (on database or a text file). When user2 starts your application, you request (HTTP REQUEST) your score from server (if there is any).

    Reference: Rating bar example, HTTP POST example on Android, HTTP request example