How to communicate with Node.js server from Android client

How to communicate with Node.js server from Android client

Problem

i’m working on a small project where i need to communicate with node.js server(it has rest services) from android client…i referred this link Combining java and nodejs for android app… is there any way where i can communicate instead of web sockets.

Problem courtesy of: srikanth gr

Solution

Check out this http://www.mkyong.com/webservices/jax-rs/restfull-java-client-with-java-net-url/, it includes a simple server example as well, but I think the client code should be useful to you.

There is also this SO question which should have more useful information for you.

Solution courtesy of: major-mann

Discussion

Leave a Reply

Your email address will not be published. Required fields are marked *