I would like my application to send/receive requests from a LOCAL server, my laptop for instance. Can anyone provide me with the necessary steps I need to follow in order to understand how this can work with an Android application?
Here is an example. Let’s assume my application wants to compute “1+1” however it doesn’t know whether or not 1+1 is equal to 2. The only way to get around this issue is to send a request which is basically the algebraic expression(1+1) and the answer(equal to 2) to the server which will check the answer from a file that it has to read and send back to the application a message stating whether or not the answer is correct.
I’ve been using Android Query to make http get/post requests and it works pretty good:
You can also chose html/xml/byte as response type.