Larry Watkins wrote:
I want to see if this is possible on my Treo, so any recommendations you can
provide to help nudge me in the right direction would be greatly appreciated.
What I want to do is basically send in GPS information to my website for up to
date viewing by visiters to my site. I have written an application to do
something like this before, but it was very manual in nature.
I would like for the program to monitor my GPS on a set interval and then email
that information out in a format that I specify. I will have a script running
on my webserver that receives that email and does what it does to it. So that
leads me to my ideas and if it is feasible.
1) Can I have a program periodically poll the string coming in via the
bluetooth GPS connection, format it and make it an email, even if I have
another program running? I think this is what gets referred to as a background
application that I don't think Palm allows, but maybe there is some workaround
that can make it happen.
You can do this with alarms and notifications. Just remember that while
you 'background' application is running any forground task is stoped. I
believe the serial manager allows some sort of callback when data is
recieved.
2) Can I have the email (using versamail) automatically send out. Currently
the program I wrote transfers the formated information to Versamail to send,
but I have to confirm sending it. It would be great if that was handled
automatically.
You can use the versamail SDK to send e-mails, but I'm not sure if you
can get it to send them automaticaly.
Another option is to send your data via a HTTP post directly to your
webserver. (Would need an active gprs session)
Let me know if I am just dreaming or if this is possible. Thanks!
--
For information on using the ACCESS Developer Forums, or to unsubscribe, please
see http://www.access-company.com/developers/forums/