Android: how to have app talk to a web page, ie send gps location
- by Ted pottel
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.
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
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.
Is there a good way to do this?