Rajapandian
Rajapandian

Reputation: 9317

How to do Socket communication in android?

I am having a task,considering one emulator as server and i have to access a web service from the client emulator.I think this is not possible in android,if anyone knows about it please send some code snippets to do this.

Upvotes: 0

Views: 2613

Answers (1)

Josef Pfleger
Josef Pfleger

Reputation: 74557

Android's java.net package is pretty much the same as Java's so you can use Sockets and ServerSockets for TCP communication or a DatagramSocket for UDP.

However, there is currently no support for SOAP webservices in the android SDK but you can use third party libraries or build your own. Have a look at the following questions:

Upvotes: 2

Related Questions