문제

I'm writing an app for android in Java, and a server also in Java. I'm looking for a way to communicate with the server like a web service. I want to be able to call functions written in the server from the client.

도움이 되었습니까?

해결책

There are many ways but the best way is to use volley https://github.com/mcxiaoke/android-volley

http://arnab.ch/blog/2013/08/asynchronous-http-requests-in-android-using-volley/

Or simply you can use a AsynTask for network calls How to use AsyncTask correctly in Android

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top