How do i simply "hit" a remote php URL?

by chat2joe » Tue, 08 Mar 2011 05:51:14 GMT

Sponsored Links
 Hey guys,

Sorry if this is a stupid question, I'm new to android and JAVA and
have a project which is due very soon.

I want to upload my gps positions to a MySQL database. I have a php
file all ready to accept variables as file.php?lat=55&long=22 . Once
that url is entered... the lat and long go into my database. The
closest I've seen for this is a HTTP request... I've been trying to
get this working but it seems too complicated for my purpose as I
don't need to listen for or process any return data.

Is there a simple way to "hit" the url within a function? Ideally I'd
like to have it triggered on gps location change, then also maybe a
timout type delay to restrict that to only every 8 seconds.

Thanks for any help on it!



Re: How do i simply "hit" a remote php URL?

by Aisthesis » Tue, 08 Mar 2011 21:53:08 GMT

 this can be improved a little imo, but it should get you going: 


Sponsored Links