How to call a RESTful web service from Android?

后端 未结 9 1763
生来不讨喜
生来不讨喜 2020-11-27 10:58

I have written a REST web service in Netbean IDE using Jersey Framework and Java.

For every request the user needs to provide a username and a password, I know that

9条回答
  •  长情又很酷
    2020-11-27 11:26

    What back-end? If JAVA then you can use REST with Java (JAX-RS) using Jersey.

    On the Android side you can use this simple RestClient to work with that REST service.

    For JSON <--> Object mapping on both sides (Android, Java back-end) you can use GSON.

提交回复
热议问题