简体   繁体   English

将服务器构建到android应用程序

[英]Building a server to an android application

I checked this thread which actually looks for the same thing that i look - but he didnt got answered. 我检查了线程, 线程实际上在寻找与我看上去相同的东西-但他没有得到回答。 What i'm looking for is a way to connect between server (as a java application) and a client (as a android application) - in a way that the client will be able to call remote methods in the server, and get remote objects from the server. 我正在寻找的是一种在服务器(作为Java应用程序)和客户端(作为android应用程序)之间进行连接的方式-一种使客户端能够调用服务器中的远程方法并获取远程对象的方式从服务器。 (doesn't matter if it uses AIDL or not..) (是否使用AIDL都没关系。)

I worked with RMI and it's fine - but it unnable to use on Android, so i have to find another way. 我使用RMI工作,很好-但是无法在Android上使用,因此我不得不寻找另一种方法。

Thanks for help! 感谢帮助!

Two possible avenues: 两种可能的途径:

  1. Use servlets on the server and pass data via GET/POST 在服务器上使用servlet并通过GET / POST传递数据
  2. JAX - pass data via SOAP requests JAX-通过SOAP请求传递数据

I'm sure there are others, too. 我敢肯定还有其他人。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM