Android: how to have app talk to a web page, ie send gps location

Posted by Ted pottel on Stack Overflow See other posts from Stack Overflow or by Ted pottel
Published on 2012-09-27T21:35:42Z Indexed on 2012/09/27 21:37 UTC
Read the original article Hit count: 146

Filed under:

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?

© Stack Overflow or respective owner

Related posts about android