How to have app talk to a web page, ie send gps location
<p>I'm trying to write a app, where a webpage will have a button that when press will give the GPS location of the phone.</p>

<p>I was going to have the android app create a thread that waits on a scket connection. The issue is that
1. Getting the ip addrs of the phone
2. I was told this would really drain the battery</p>

<p>I was also thinking about having the phone send the gps location to a webserver like evrry 10 seconds.  This sort of  seams like a waste of bandwidth.</p>

<p>Is there a good way to do this?</p>
