posted 10 years ago
Hi,
I have been learning REST, and all facilities that Spring provide for work with it.
At first, I developed a web application using Spring that work as server to export a service, which consists in return one object by id.
Then I developed a client web application with Spring to consume the service, using RestTemplate, and it worked without problems.
But when I try to do the same that I did in the client in an android application It cant connect to Server.
This is the code:
I also include all permissions in the AndroidManifest.xml,
Then when I run that code, after several minutes waiting, the app throw the Exception:
Then my question is:
Why if I can comunicate with the server since a web application, I can't do it since an android application?
I have the web applications (client and server) running in the same PC, and the android app in my phone, then: Has the WIFI connection anything to do with it?
I will be gratefull by your answer
Regards