开发者

Android application as Web Service

Is it possible implement an Android application as a web service?

On the official site I've read开发者_Go百科:

Note: If you want to develop a server-side application, we recommend that you implement your application as a servlet running in a servlet engine like Tomcat or full-blown JSEE container like Geronimo. If you prefer to implement a server-side application based on our HttpService, we'll assume that you know what you're doing and that you don't need help in figuring out which interceptors need to be configured.

How can I implement this? Apache TOMCAT can run on Android?


Is it possible implement an Android application as a web service?

You can create an Android service that will open up some server socket and will listen for HTTP requests. However, Android will eventually kill off that service, either automatically after it is unused or at user request. And, nobody will be able to access the service except on the same WiFi LAN.

IMHO, truly implementing a Web service on Android is pointless.


I think they're saying that you can write a server-side application for an Android user to access, not that you'd run Tomcat on the Android device itself.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜