I want to create a game which goes back and fourth to the servlet and acts when the user clicks a button. So the logic will be within a servlet and this logic will be called from an android class.
Not sure how to go about this, please advise.
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Create a REST + JSON service on your server: http://docs.jboss.org/resteasy/docs/2.0.0.GA/userguide/html_single/index.html
Create a REST client on Android: http://senior.ceng.metu.edu.tr/2009/praeda/2009/01/11/a-simple-restful-client-at-android/
There are many more REST examples on the web for server and Android clients.