Click here to Skip to main content
15,891,248 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

My program send a request to the server for name and location.It need to receive it and implement in the apps self tracker.The problem is that i dont know that part. The online server and db is done previously.

Thanks.....
Posted

HTML

Hi,

I found a really useful blog for this. It has a sample login android application which sends the user name and the password to a remote server to validate. the server is a simple servlet application. It validates and sends the response back to android app.. It looks really simple and the below page contains complete code as well... Please go through.. Hope this would be helpful...

http://www.compiletimeerror.com/2013/01/login-application-for-android.html
 
Share this answer
 
v4
Comments
jaswant_ 8-Jan-13 9:30am    
it works for me also.. android app sends two string values to server(servlet application)
If the server is of the classical HTTP kind you'll find a perfect client side example on how to make a request here: "Example of HTTP Get Request Using HttpClient in Android"[^]

Best Regards,

—MRB
 
Share this answer
 
Comments
dixonjames 16-Sep-11 10:19am    
thank a lot!!!
dixonjames 16-Sep-11 10:21am    
how do we use the info to implement in an app
dixonjames 16-Sep-11 10:27am    
In

Perform a HTTP POST Request with the HttpClient in Android i get error under postparameters
dixonjames 16-Sep-11 10:31am    
i got it solved
Neha Thanka 20-Sep-11 0:57am    
Can you explain....?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900