In Android you cannot test against localhost (127.0.0.1). However you can test against IP address of your local wifi at home. So find out what is IP of your PC (mostlikely something like 192.168.0.1) make sure you can communicate with port 2001
peter_budo
Code tags enforcer
15,791 posts since Dec 2004
Reputation Points: 2,867
Solved Threads: 944
Skill Endorsements: 50
I will have to test the code. However this sort task would be normaly delegated to web server and you would simple post to URL with coordinates and let server to extract data and storem them in DB
peter_budo
Code tags enforcer
15,791 posts since Dec 2004
Reputation Points: 2,867
Solved Threads: 944
Skill Endorsements: 50
Apache HTTPD is the main server on which you can run Java server like Tomcat, Glassfish, JBoss etc to run Java web service, or just deploy PHP. the main part is that you create request like http://wwww.somewebsite.com/coordinates?param1=xyz¶m2=abc. Server will react to POST request on http://wwww.somewebsite.com/coordinates and extract param 1 and param2 and store them in DB.
Sopick up web framework/technology you are most familiar with so you can write that bit of code for server side extraction
peter_budo
Code tags enforcer
15,791 posts since Dec 2004
Reputation Points: 2,867
Solved Threads: 944
Skill Endorsements: 50
Lets try, can yuo code either in PHP / .NET / Ruby or did any Java web application?
peter_budo
Code tags enforcer
15,791 posts since Dec 2004
Reputation Points: 2,867
Solved Threads: 944
Skill Endorsements: 50
Are you able to create page "coordinates" that will listen for POST reques and then from request extract provided parameters? (Not sure how this works in PHP, but in Java you would setup doPost method and then inside would extract parameters, there is method that will return you all names of the parameters and another method where you provide name of parameter and get back value)
peter_budo
Code tags enforcer
15,791 posts since Dec 2004
Reputation Points: 2,867
Solved Threads: 944
Skill Endorsements: 50