Hello again,

I can receive and decode traffic messages now. I'm doing this in a
service and the next step is to update the ItemizedOverlay object in
the map activity as messages are coming. I figured out that a service
cannot directly access it's overlying activity. What is a good
practice to bring the messages created in the service to the activity?

Lex

On Jun 22, 4:10 pm, Lex <[email protected]> wrote:
> I am sure about updating the map in real time - how the users are
> going to use the application isn't the concern at the moment. I just
> got thetrafficmessage specs, so I'll do that and see how far I get
> with updating the events on the map.
>
> Thanks Al!
>
> On Jun 22, 1:37 pm, "Alistair." <[email protected]>
> wrote:
>
> > Are you sure you want to update the map in real time? In terms of a
> > mobile application users are not going to have the application  open
> > to the map view constantly they will open the app and observe the
> > current state of the road location they are interested in.
>
> > All you really need to do is fetch the latest data when the view is
> > opened and update the current event list.
>
> > Al.
>
> > On Jun 21, 12:19 pm,Lex<[email protected]> wrote:
>
> > > Hi everyone,
>
> > > I am developing a prototype application which features basic
> > > navigation (updating of own location on the map) and displays live
> > >trafficevents astrafficsign icons on the map. Thetrafficevents
> > > will be fetched from a server over a UDP connection. (I haven't
> > > implemented this as I don't have thetrafficmessage specs yet).
>
> > > The idea is to displaytrafficevents in real-time and also delete
> > > them when they have expired. I figured out that what I need for this
> > > is one or more ItemizedOverlays with dynamic items. I found this post,
>
> > >http://groups.google.com/group/android-developers/browse_thread/threa...
>
> > > which seems to be similar to my application. So the circular process
> > > is:
> > > 1. fetchtrafficdata from server
> > > 2. populate an ItemizedOverlay object containingtrafficevents
> > > 3. update the map accordingy when the items in the overlay have
> > > changed
>
> > > Apparently in the MapView (or Map Activity?) I need some sort of a
> > > listener for changes in the ItemizedOverlay object. What is the best
> > > practice for doing this?
>
> > > Thanks,Lex
--~--~---------~--~----~------------~-------~--~----~
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