this can be improved a little imo, but it should get you going:
http://www.aviransplace.com/2008/01/08/make-http-post-or-get-request-from-java/


On Mar 6, 5:23 am, chat2joe <[email protected]> wrote:
> 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!
>
> Joe

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to