开发者

Classes interacting with Tomcat servlets

开发者 https://www.devze.com 2023-02-15 09:46 出处:网络
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 a开发者_如何学Pyth

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 a开发者_如何学Pythonndroid class.

Not sure how to go about this, please advise.

Thanks


  1. Create a REST + JSON service on your server: http://docs.jboss.org/resteasy/docs/2.0.0.GA/userguide/html_single/index.html

  2. 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.

0

精彩评论

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