How to call a RESTful web service from Android?

后端 未结 9 1750
生来不讨喜
生来不讨喜 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

    Stop with whatever you were doing ! :)

    Implement the RESTful client as a SERVICE and delegate the intensive network stuff to activity independent component: a SERVICE.

    Watch this insightful video http://www.youtube.com/watch?v=xHXn3Kg2IQE where Virgil Dobjanschi is explaining his approach(es) to this challenge...

提交回复
热议问题